@@ -5,24 +5,24 @@ from abc import abstractmethod
55from collections .abc import Callable , Iterable , Iterator , Mapping , Sequence
66from ctypes import CDLL , ArgumentError as ArgumentError , c_void_p
77from types import GenericAlias
8- from typing import Any , ClassVar , Generic , TypeVar , final , overload , type_check_only
8+ from typing import Any , ClassVar , Final , Generic , TypeVar , final , overload , type_check_only
99from typing_extensions import Self , TypeAlias
1010
1111_T = TypeVar ("_T" )
1212_CT = TypeVar ("_CT" , bound = _CData )
1313
14- FUNCFLAG_CDECL : int
15- FUNCFLAG_PYTHONAPI : int
16- FUNCFLAG_USE_ERRNO : int
17- FUNCFLAG_USE_LASTERROR : int
18- RTLD_GLOBAL : int
19- RTLD_LOCAL : int
14+ FUNCFLAG_CDECL : Final = 0x1
15+ FUNCFLAG_PYTHONAPI : Final = 0x4
16+ FUNCFLAG_USE_ERRNO : Final = 0x8
17+ FUNCFLAG_USE_LASTERROR : Final = 0x10
18+ RTLD_GLOBAL : Final [ int ]
19+ RTLD_LOCAL : Final [ int ]
2020
2121if sys .version_info >= (3 , 11 ):
22- CTYPES_MAX_ARGCOUNT : int
22+ CTYPES_MAX_ARGCOUNT : Final [ int ]
2323
2424if sys .version_info >= (3 , 12 ):
25- SIZEOF_TIME_T : int
25+ SIZEOF_TIME_T : Final [ int ]
2626
2727if sys .platform == "win32" :
2828 # Description, Source, HelpFile, HelpContext, scode
@@ -37,8 +37,8 @@ if sys.platform == "win32":
3737
3838 def CopyComPointer (src : _PointerLike , dst : _PointerLike | _CArgObject ) -> int : ...
3939
40- FUNCFLAG_HRESULT : int
41- FUNCFLAG_STDCALL : int
40+ FUNCFLAG_HRESULT : Final = 0x2
41+ FUNCFLAG_STDCALL : Final = 0x0
4242
4343 def FormatError (code : int = ...) -> str : ...
4444 def get_last_error () -> int : ...
0 commit comments