[stdlib] Add missing Final (#14613)

This commit is contained in:
Semyon Moroz
2025-08-21 10:18:20 +00:00
committed by GitHub
parent 9b5b3ecb0a
commit 9bb8c4f1f9
30 changed files with 197 additions and 187 deletions
+2 -2
View File
@@ -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): ...
+2 -2
View File
@@ -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]