Skip to content

Commit

Permalink
upgrade pyre version in fbcode/fair_infra - batch 1
Browse files Browse the repository at this point in the history
Differential Revision: D44267110

fbshipit-source-id: bc9a54b6916338880bb09a785918a77fb2c21018
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Mar 22, 2023
1 parent 29c5224 commit 0f11f7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iopath/common/non_blocking_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def _close_thread_pool(self) -> bool:


# NOTE: We currently only support asynchronous writes (not reads).
# pyre-fixme[13]: Attribute `read` is never initialized.
class NonBlockingIO(io.IOBase):
def __init__(
self,
Expand Down Expand Up @@ -292,6 +293,7 @@ def close(self) -> None:

# NOTE: To use this class, use `buffered=True` in `NonBlockingIOManager`.
# NOTE: This class expects the IO mode to be buffered.
# pyre-fixme[13]: Attribute `read` is never initialized.
class NonBlockingBufferedIO(io.IOBase):
# pyre-fixme[4]: Attribute must be annotated.
MAX_BUFFER_BYTES = 10 * 1024 * 1024 # 10 MiB
Expand Down

0 comments on commit 0f11f7a

Please sign in to comment.