Skip to content

Commit 60ae321

Browse files
committed
Update comments
1 parent 8462952 commit 60ae321

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

stdlib/@tests/test_cases/check_compression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"))
4444
DecompressReader(fp, decompressobj)
4545
DecompressReader(fp, BZ2Decompressor)
4646
DecompressReader(fp, LZMADecompressor)
@@ -53,7 +53,7 @@ def accept_decompressor(d: _Decompressor) -> None:
5353
accept_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"))
5757
DecompressReader_other(fp, decompressobj)
5858
DecompressReader_other(fp, BZ2Decompressor)
5959
DecompressReader_other(fp, LZMADecompressor)

stdlib/_compression.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

stdlib/compression/_common/_streams.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)