mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 19:11:26 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
1 parent
63737acac6
commit
470a13ab09
139 files changed
+2412
-2371
No files matched your search
@@ -6,9 +6,9 @@ from typing import Any, Protocol
|
||||
BUFFER_SIZE = DEFAULT_BUFFER_SIZE
|
||||
|
||||
class _Reader(Protocol):
|
||||
def read(self, __n: int) -> bytes: ...
|
||||
def read(self, n: int, /) -> bytes: ...
|
||||
def seekable(self) -> bool: ...
|
||||
def seek(self, __n: int) -> Any: ...
|
||||
def seek(self, n: int, /) -> Any: ...
|
||||
|
||||
class BaseStream(BufferedIOBase): ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user