mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-10 18:36:31 +08:00
[stdlib] Add missing Final (#14613)
This commit is contained in:
@@ -26,7 +26,7 @@ from _ctypes import (
|
||||
from _typeshed import StrPath
|
||||
from ctypes._endian import BigEndianStructure as BigEndianStructure, LittleEndianStructure as LittleEndianStructure
|
||||
from types import GenericAlias
|
||||
from typing import Any, ClassVar, Generic, Literal, TypeVar, overload, type_check_only
|
||||
from typing import Any, ClassVar, Final, Generic, Literal, TypeVar, overload, type_check_only
|
||||
from typing_extensions import Self, TypeAlias, deprecated
|
||||
|
||||
if sys.platform == "win32":
|
||||
@@ -55,7 +55,7 @@ if sys.version_info >= (3, 14):
|
||||
else:
|
||||
from _ctypes import POINTER as POINTER, pointer as pointer
|
||||
|
||||
DEFAULT_MODE: int
|
||||
DEFAULT_MODE: Final[int]
|
||||
|
||||
class ArgumentError(Exception): ...
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ from ctypes import (
|
||||
c_wchar,
|
||||
c_wchar_p,
|
||||
)
|
||||
from typing import Any, TypeVar
|
||||
from typing import Any, Final, TypeVar
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
@@ -177,7 +177,7 @@ class MSG(Structure):
|
||||
pt: _CField[POINT, POINT, POINT]
|
||||
|
||||
tagMSG = MSG
|
||||
MAX_PATH: int
|
||||
MAX_PATH: Final = 260
|
||||
|
||||
class WIN32_FIND_DATAA(Structure):
|
||||
dwFileAttributes: _CIntLikeField[DWORD]
|
||||
|
||||
Reference in New Issue
Block a user