File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def accept_decompressor(d: _Decompressor) -> None:
4040
4141
4242# Test objects from compression._common._streams
43- fp = cast (_Reader , io .BytesIO (b"hello world" )) # type: ignore
43+ fp = cast (_Reader , io .BytesIO (b"hello world" ))
4444DecompressReader (fp , decompressobj )
4545DecompressReader (fp , BZ2Decompressor )
4646DecompressReader (fp , LZMADecompressor )
@@ -53,7 +53,7 @@ def accept_decompressor(d: _Decompressor) -> None:
5353accept_decompressor (CustomDecompressor ())
5454
5555# Test objects from _compression
56- fp = cast (_Reader_other , io .BytesIO (b"hello world" )) # type: ignore
56+ fp = cast (_Reader_other , io .BytesIO (b"hello world" ))
5757DecompressReader_other (fp , decompressobj )
5858DecompressReader_other (fp , BZ2Decompressor )
5959DecompressReader_other (fp , LZMADecompressor )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class _Decompressor(Protocol):
2020 def unused_data (self ) -> bytes : ...
2121 @property
2222 def eof (self ) -> bool : ...
23- # `zlib._Decompress` does not have next property, unlike other Decompressors :
23+ # `zlib._Decompress` does not have next property, but `DecompressReader` calls it :
2424 # @property
2525 # def needs_input(self) -> bool: ...
2626
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class _Decompressor(Protocol):
1818 def unused_data (self ) -> bytes : ...
1919 @property
2020 def eof (self ) -> bool : ...
21- # `zlib._Decompress` does not have next property, unlike other Decompressors :
21+ # `zlib._Decompress` does not have next property, but `DecompressReader` calls it :
2222 # @property
2323 # def needs_input(self) -> bool: ...
2424
You can’t perform that action at this time.
0 commit comments