Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
9255de4b
Commit
9255de4b
authored
Oct 29, 2017
by
Julian Gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Struct to Shadow.pyi
parent
5ce158a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Cython/Shadow.pyi
Cython/Shadow.pyi
+9
-1
No files found.
Cython/Shadow.pyi
View file @
9255de4b
...
@@ -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]]: ...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment