Fix availability of some constants for Windows (#10818)

This commit is contained in:
Alex Waygood
2023-10-02 00:27:55 +01:00
committed by GitHub
parent efa7a51d09
commit 205cfcfca6
5 changed files with 8 additions and 11 deletions

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]