mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 03:11:16 +08:00
add and migrate constants from ctypes/__init__.pyi to _ctypes.pyi (#8643)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
@@ -5,6 +5,10 @@ from collections.abc import Callable, Iterable, Iterator, Mapping, Sequence
|
||||
from typing import Any, ClassVar, Generic, TypeVar, Union as _UnionT, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
# TODO: import these from _ctypes once it no longer breaks pytype
|
||||
RTLD_GLOBAL: int
|
||||
RTLD_LOCAL: int
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from types import GenericAlias
|
||||
|
||||
@@ -12,8 +16,6 @@ _T = TypeVar("_T")
|
||||
_DLLT = TypeVar("_DLLT", bound=CDLL)
|
||||
_CT = TypeVar("_CT", bound=_CData)
|
||||
|
||||
RTLD_GLOBAL: int
|
||||
RTLD_LOCAL: int
|
||||
DEFAULT_MODE: int
|
||||
|
||||
class CDLL:
|
||||
|
||||
Reference in New Issue
Block a user