mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-29 19:26:45 +08:00
[stdlib] Mark constants as Final (#14577)
This commit is contained in:
+11
-11
@@ -5,24 +5,24 @@ from abc import abstractmethod
|
||||
from collections.abc import Callable, Iterable, Iterator, Mapping, Sequence
|
||||
from ctypes import CDLL, ArgumentError as ArgumentError, c_void_p
|
||||
from types import GenericAlias
|
||||
from typing import Any, ClassVar, Generic, TypeVar, final, overload, type_check_only
|
||||
from typing import Any, ClassVar, Final, Generic, TypeVar, final, overload, type_check_only
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_CT = TypeVar("_CT", bound=_CData)
|
||||
|
||||
FUNCFLAG_CDECL: int
|
||||
FUNCFLAG_PYTHONAPI: int
|
||||
FUNCFLAG_USE_ERRNO: int
|
||||
FUNCFLAG_USE_LASTERROR: int
|
||||
RTLD_GLOBAL: int
|
||||
RTLD_LOCAL: int
|
||||
FUNCFLAG_CDECL: Final = 0x1
|
||||
FUNCFLAG_PYTHONAPI: Final = 0x4
|
||||
FUNCFLAG_USE_ERRNO: Final = 0x8
|
||||
FUNCFLAG_USE_LASTERROR: Final = 0x10
|
||||
RTLD_GLOBAL: Final[int]
|
||||
RTLD_LOCAL: Final[int]
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
CTYPES_MAX_ARGCOUNT: int
|
||||
CTYPES_MAX_ARGCOUNT: Final[int]
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
SIZEOF_TIME_T: int
|
||||
SIZEOF_TIME_T: Final[int]
|
||||
|
||||
if sys.platform == "win32":
|
||||
# Description, Source, HelpFile, HelpContext, scode
|
||||
@@ -37,8 +37,8 @@ if sys.platform == "win32":
|
||||
|
||||
def CopyComPointer(src: _PointerLike, dst: _PointerLike | _CArgObject) -> int: ...
|
||||
|
||||
FUNCFLAG_HRESULT: int
|
||||
FUNCFLAG_STDCALL: int
|
||||
FUNCFLAG_HRESULT: Final = 0x2
|
||||
FUNCFLAG_STDCALL: Final = 0x0
|
||||
|
||||
def FormatError(code: int = ...) -> str: ...
|
||||
def get_last_error() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user