| 1 |
import sys |
| 2 |
from typing import Final |
| 3 |
|
| 4 |
|
| 5 |
if sys.platform == "win32": |
| 6 |
CRT_ASSEMBLY_VERSION: Final[str] |
| 7 |
LK_UNLCK: Final = 0 |
| 8 |
LK_LOCK: Final = 1 |
| 9 |
LK_NBLCK: Final = 2 |
| 10 |
LK_RLCK: Final = 3 |
| 11 |
LK_NBRLCK: Final = 4 |
| 12 |
SEM_FAILCRITICALERRORS: Final = 0x0001 |
| 13 |
SEM_NOALIGNMENTFAULTEXCEPT: Final = 0x0004 |
| 14 |
SEM_NOGPFAULTERRORBOX: Final = 0x0002 |
| 15 |
SEM_NOOPENFILEERRORBOX: Final = 0x8000 |
| 16 |
def locking(fd: int, mode: int, nbytes: int, /) -> None: ... |
| 17 |
def setmode(fd: int, mode: int, /) -> int: ... |
| 18 |
def open_osfhandle(handle: int, flags: int, /) -> int: ... |
| 19 |
def get_osfhandle(fd: int, /) -> int: ... |
| 20 |
def kbhit() -> bool: ... |
| 21 |
def getch() -> bytes: ... |
| 22 |
def getwch() -> str: ... |
| 23 |
def getche() -> bytes: ... |
| 24 |
def getwche() -> str: ... |
| 25 |
def putch(char: bytes | bytearray, /) -> None: ... |
| 26 |
def putwch(unicode_char: str, /) -> None: ... |
| 27 |
def ungetch(char: bytes | bytearray, /) -> None: ... |
| 28 |
def ungetwch(unicode_char: str, /) -> None: ... |
| 29 |
def heapmin() -> None: ... |
| 30 |
def SetErrorMode(mode: int, /) -> int: ... |
| 31 |
if sys.version_info >= (3, 10): |
| 32 |
def GetErrorMode() -> int: ... |