mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 18:13:36 +08:00
Add msvcrt.locking() and associated constants (#3607)
This commit is contained in:
committed by
Sebastian Rittau
parent
d5f1e58457
commit
910cfe4b83
14
stdlib/2and3/msvcrt.pyi
Normal file
14
stdlib/2and3/msvcrt.pyi
Normal file
@@ -0,0 +1,14 @@
|
||||
# Stubs for msvcrt
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
LK_LOCK: int
|
||||
LK_NBLCK: int
|
||||
LK_NBRLCK: int
|
||||
LK_RLCK: int
|
||||
LK_UNLCK: int
|
||||
|
||||
def locking(fd: int, mode: int, nbytes: int) -> None: ...
|
||||
|
||||
def get_osfhandle(file: int) -> int: ...
|
||||
def open_osfhandle(handle: int, flags: int) -> int: ...
|
||||
Reference in New Issue
Block a user