Fix availability of some constants for Windows (#10818)

This commit is contained in:
Alex Waygood authored and GitHub committed 2023-10-01 16:27:55 -07:00
1 parent efa7a51d09
commit 205cfcfca6
5 files changed
+8 -11

No files matched your search

+2 -1
View File
@@ -1,8 +1,9 @@
import sys
from typing_extensions import Literal
from typing_extensions import Final, Literal
# This module is only available on Windows
if sys.platform == "win32":
CRT_ASSEMBLY_VERSION: Final[str]
LK_UNLCK: Literal[0]
LK_LOCK: Literal[1]
LK_NBLCK: Literal[2]