mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user