mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 10:52:31 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -18,7 +18,7 @@ class _NullCoder:
|
||||
def decode(b: str, final: bool = False): ...
|
||||
|
||||
class _Logfile(Protocol):
|
||||
def write(self, __s) -> object: ...
|
||||
def write(self, s, /) -> object: ...
|
||||
def flush(self) -> object: ...
|
||||
|
||||
_ErrorPattern: TypeAlias = type[EOF | TIMEOUT]
|
||||
|
||||
Reference in New Issue
Block a user