mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-29 03:06:43 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
@@ -88,6 +88,7 @@ class BytesIO(BufferedIOBase, _BufferedIOBase, BinaryIO): # type: ignore[misc]
|
||||
def readlines(self, size: int | None = None, /) -> list[bytes]: ...
|
||||
def seek(self, pos: int, whence: int = 0, /) -> int: ...
|
||||
|
||||
@type_check_only
|
||||
class _BufferedReaderStream(Protocol):
|
||||
def read(self, n: int = ..., /) -> bytes: ...
|
||||
# Optional: def readall(self) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user