Commit 9255de4b authored by Julian Gethmann's avatar Julian Gethmann

Add Struct to Shadow.pyi

parent 5ce158a1
...@@ -67,6 +67,12 @@ class PointerType(CythonType, Generic[_T]): ...@@ -67,6 +67,12 @@ class PointerType(CythonType, Generic[_T]):
class ArrayType(PointerType[_T]): class ArrayType(PointerType[_T]):
def __init__(self) -> None: ... def __init__(self) -> None: ...
class StructType(CythonType, Generic[_T]):
def __init__(
self,
value: List[Type[_T]] = ...
) -> None: ...
def index_type( def index_type(
base_type: _T, item: Union[tuple, slice, int]) -> _ArrayType[_T]: ... base_type: _T, item: Union[tuple, slice, int]) -> _ArrayType[_T]: ...
...@@ -74,6 +80,8 @@ def pointer(basetype: _T) -> Type[PointerType[_T]]: ... ...@@ -74,6 +80,8 @@ def pointer(basetype: _T) -> Type[PointerType[_T]]: ...
def array(basetype: _T, n: int) -> Type[ArrayType[_T]]: ... def array(basetype: _T, n: int) -> Type[ArrayType[_T]]: ...
def struct(basetype: _T) -> Type[StructType[_T]]: ...
class typedef(CythonType, Generic[_T]): class typedef(CythonType, Generic[_T]):
name: str name: str
...@@ -83,6 +91,6 @@ class typedef(CythonType, Generic[_T]): ...@@ -83,6 +91,6 @@ class typedef(CythonType, Generic[_T]):
__getitem__ = index_type __getitem__ = index_type
class _FusedType(CythonType, Genergic[_T]): class _FusedType(CythonType, Genergic[_T]):
def __init__(self, Union[py_int, py_long, , py_float, py_complex, Any]) -> None: ... def __init__(self, Union[py_int, py_long, py_float, py_complex, Any]) -> None: ...
def fused_type(basetype: _T) -> Type[FusedType[_T]]: ... def fused_type(basetype: _T) -> Type[FusedType[_T]]: ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment