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

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