mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
@@ -22,15 +22,15 @@ FNAME: int # actually Literal[8] # undocumented
|
||||
FCOMMENT: int # actually Literal[16] # undocumented
|
||||
|
||||
class _ReadableFileobj(Protocol):
|
||||
def read(self, __n: int) -> bytes: ...
|
||||
def seek(self, __n: int) -> object: ...
|
||||
def read(self, n: int, /) -> bytes: ...
|
||||
def seek(self, n: int, /) -> object: ...
|
||||
# The following attributes and methods are optional:
|
||||
# name: str
|
||||
# mode: str
|
||||
# def fileno() -> int: ...
|
||||
|
||||
class _WritableFileobj(Protocol):
|
||||
def write(self, __b: bytes) -> object: ...
|
||||
def write(self, b: bytes, /) -> object: ...
|
||||
def flush(self) -> object: ...
|
||||
# The following attributes and methods are optional:
|
||||
# name: str
|
||||
|
||||
Reference in New Issue
Block a user