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
+1 -1
View File
@@ -17,7 +17,7 @@ _StreamOutT = TypeVar("_StreamOutT", bound=_Stream[str] | _Stream[bytes])
_StreamErrT = TypeVar("_StreamErrT", bound=_Stream[str] | _Stream[bytes])
class _Stream(SupportsWrite[_T_contra], Protocol):
def seek(self, __offset: int, __whence: int = ...) -> int: ...
def seek(self, offset: int, whence: int = ..., /) -> int: ...
# Alias for IPython.core.interactiveshell.InteractiveShell.
# N.B. Even if we added ipython to the stub-uploader allowlist,