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: D45285186

fbshipit-source-id: bbc3210fddaaaf5f82bd0fea6e4b3ffac13b45ff
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Apr 25, 2023
1 parent 660f83c commit 14fca9a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions iopath/common/azure_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def _get_chunk_data(self, size: int) -> bytes:
def seekable(self) -> bool:
return False

# pyre-fixme[14]: `seek` overrides method defined in `IOBase` inconsistently.
def seek(self, offset: int, whence: int = os.SEEK_SET) -> int:
raise io.UnsupportedOperation()

Expand All @@ -150,7 +149,6 @@ def readall(self) -> bytes:
return stream.getvalue()

# pyre-ignore[2]: stream is any bytes-like object
# pyre-fixme[14]: `readinto` overrides method defined in `RawIOBase` inconsistently.
def readinto(self, stream) -> None:
size = self._chunk_size
data = self._get_chunk_data(size)
Expand All @@ -163,11 +161,9 @@ def writeable(self) -> bool:
return False

# pyre-ignore[2]: b is any bytes-like object
# pyre-fixme[14]: `write` overrides method defined in `RawIOBase` inconsistently.
def write(self, b) -> int:
raise io.UnsupportedOperation()

# pyre-fixme[14]: `truncate` overrides method defined in `IOBase` inconsistently.
def truncate(self, size: Optional[int]) -> int:
raise io.UnsupportedOperation()

Expand Down Expand Up @@ -221,7 +217,6 @@ def _append_to_chunk(self, b: bytes) -> int:
def seekable(self) -> bool:
return False

# pyre-fixme[14]: `seek` overrides method defined in `IOBase` inconsistently.
def seek(self, offset: int, whence: int = os.SEEK_SET) -> int:
raise io.UnsupportedOperation()

Expand All @@ -238,19 +233,16 @@ def readall(self) -> bytes:
raise io.UnsupportedOperation()

# pyre-ignore[2]: stream is any bytes-like object
# pyre-fixme[14]: `readinto` overrides method defined in `RawIOBase` inconsistently.
def readinto(self, stream) -> None:
raise io.UnsupportedOperation()

def writeable(self) -> bool:
return True

# pyre-ignore[2]: b is any bytes-like object
# pyre-fixme[14]: `write` overrides method defined in `RawIOBase` inconsistently.
def write(self, b) -> int:
return self._append_to_chunk(b)

# pyre-fixme[14]: `truncate` overrides method defined in `IOBase` inconsistently.
def truncate(self, size: Optional[int]) -> int:
raise io.UnsupportedOperation()

Expand Down
1 change: 0 additions & 1 deletion iopath/common/non_blocking_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ def write(self, b: Union[bytes, bytearray]) -> None:
# bytes]`.
self._notify_manager(lambda: self._io.write(b))

# pyre-fixme[14]: `seek` overrides method defined in `IOBase` inconsistently.
def seek(self, offset: int, whence: int = 0) -> int:
"""
Called on `f.seek()`.
Expand Down
1 change: 0 additions & 1 deletion iopath/common/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,6 @@ def writable(self) -> bool:
def fileno(self) -> int:
raise AttributeError()

# pyre-fixme[14]: `seek` overrides method defined in `IOBase` inconsistently.
def seek(self, offset: int, whence: int = 0) -> int:
"""
Change stream position.
Expand Down

0 comments on commit 14fca9a

Please sign in to comment.