mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -56,8 +56,8 @@ class _ttinfo:
|
||||
class _TZFileReader(Protocol):
|
||||
# optional attribute:
|
||||
# name: str
|
||||
def read(self, __size: int) -> bytes: ...
|
||||
def seek(self, __target: int, __whence: Literal[1]) -> object: ...
|
||||
def read(self, size: int, /) -> bytes: ...
|
||||
def seek(self, target: int, whence: Literal[1], /) -> object: ...
|
||||
|
||||
class tzfile(_tzinfo):
|
||||
def __init__(self, fileobj: str | _TZFileReader, filename: str | None = None) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user