move some non-pointer-related definitions from ctypes/__init__.pyi to _ctypes.pyi (#10130)

- `ArgumentError`
- `addressof`
- `alignment`
- `get_errno`
- `resize`
- `set_errno`
- `sizeof`
This commit is contained in:
Jun Komoda
2023-05-03 00:54:42 +09:00
committed by GitHub
parent 1caac913ea
commit ce531f897f
3 changed files with 16 additions and 14 deletions

View File

@@ -132,3 +132,12 @@ class Array(Generic[_CT], _CData):
def __len__(self) -> int: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
class ArgumentError(Exception): ...
def addressof(obj: _CData) -> int: ...
def alignment(obj_or_type: _CData | type[_CData]) -> int: ...
def get_errno() -> int: ...
def resize(obj: _CData, size: int) -> None: ...
def set_errno(value: int) -> int: ...
def sizeof(obj_or_type: _CData | type[_CData]) -> int: ...