Add some missing Windows constants (#8346)

This commit is contained in:
Alex Waygood
2022-07-20 17:45:36 +01:00
committed by GitHub
parent 73fbb53475
commit d1e80a724a
4 changed files with 46 additions and 12 deletions

View File

@@ -8,6 +8,10 @@ if sys.platform == "win32":
LK_NBLCK: Literal[2]
LK_RLCK: Literal[3]
LK_NBRLCK: Literal[4]
SEM_FAILCRITICALERRORS: int
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: ...