Use PEP 570 syntax in third party stubs (#11554)

This commit is contained in:
Shantanu
2024-03-10 06:11:43 -07:00
committed by GitHub
parent f94bbfbcc4
commit 88fa182253
97 changed files with 625 additions and 632 deletions
+2 -2
View File
@@ -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: ...