Use PEP 570 syntax in stdlib (#11250)

This commit is contained in:
Shantanu
2024-03-09 14:50:16 -08:00
committed by GitHub
parent 63737acac6
commit 470a13ab09
139 changed files with 2412 additions and 2371 deletions

View File

@@ -13,20 +13,20 @@ if sys.platform == "win32":
SEM_NOALIGNMENTFAULTEXCEPT: int
SEM_NOGPFAULTERRORBOX: int
SEM_NOOPENFILEERRORBOX: int
def locking(__fd: int, __mode: int, __nbytes: int) -> None: ...
def setmode(__fd: int, __mode: int) -> int: ...
def open_osfhandle(__handle: int, __flags: int) -> int: ...
def get_osfhandle(__fd: int) -> int: ...
def locking(fd: int, mode: int, nbytes: int, /) -> None: ...
def setmode(fd: int, mode: int, /) -> int: ...
def open_osfhandle(handle: int, flags: int, /) -> int: ...
def get_osfhandle(fd: int, /) -> int: ...
def kbhit() -> bool: ...
def getch() -> bytes: ...
def getwch() -> str: ...
def getche() -> bytes: ...
def getwche() -> str: ...
def putch(__char: bytes | bytearray) -> None: ...
def putwch(__unicode_char: str) -> None: ...
def ungetch(__char: bytes | bytearray) -> None: ...
def ungetwch(__unicode_char: str) -> None: ...
def putch(char: bytes | bytearray, /) -> None: ...
def putwch(unicode_char: str, /) -> None: ...
def ungetch(char: bytes | bytearray, /) -> None: ...
def ungetwch(unicode_char: str, /) -> None: ...
def heapmin() -> None: ...
def SetErrorMode(__mode: int) -> int: ...
def SetErrorMode(mode: int, /) -> int: ...
if sys.version_info >= (3, 10):
def GetErrorMode() -> int: ... # undocumented