mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-24 17:28:40 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -9,6 +9,6 @@ TagDict: TypeAlias = dict[int, tuple[str] | tuple[str, Any]]
|
||||
|
||||
class Reader(Protocol):
|
||||
def __iter__(self) -> bytes: ...
|
||||
def read(self, __size: int) -> bytes: ...
|
||||
def read(self, size: int, /) -> bytes: ...
|
||||
def tell(self) -> int: ...
|
||||
def seek(self, __offset: int, __whence: Literal[0, 1] = ...) -> object: ...
|
||||
def seek(self, offset: int, whence: Literal[0, 1] = ..., /) -> object: ...
|
||||
|
||||
Reference in New Issue
Block a user