mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Use Literal type in msvcrt (#7257)
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import sys
|
||||
from typing_extensions import Literal
|
||||
|
||||
# This module is only available on Windows
|
||||
if sys.platform == "win32":
|
||||
LK_LOCK: int
|
||||
LK_NBLCK: int
|
||||
LK_NBRLCK: int
|
||||
LK_RLCK: int
|
||||
LK_UNLCK: int
|
||||
LK_UNLCK: Literal[0]
|
||||
LK_LOCK: Literal[1]
|
||||
LK_NBLCK: Literal[2]
|
||||
LK_RLCK: Literal[3]
|
||||
LK_NBRLCK: Literal[4]
|
||||
def locking(__fd: int, __mode: int, __nbytes: int) -> None: ...
|
||||
def setmode(__fd: int, __mode: int) -> int: ...
|
||||
def open_osfhandle(__handle: int, __flags: int) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user