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
Xavier Thompson
cython
Commits
417023d4
Commit
417023d4
authored
Oct 29, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some missing types to Shadow.pyi and comment out incomplete ones.
parent
969e3439
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
Cython/Shadow.pyi
Cython/Shadow.pyi
+18
-12
No files found.
Cython/Shadow.pyi
View file @
417023d4
from builtins import (int as py_int, float as py_float,
bool as py_bool, str as py_str)
bool as py_bool, str as py_str
, complex as py_complex
)
from typing import (Union, Dict, Any, Sequence, Optional,
List, TypeVar, Type, Generic)
...
...
@@ -20,12 +20,19 @@ ushort = py_int
uchar = py_int
size_t = py_int
Py_ssize_t = py_int
Py_UCS4 = Union[py_int, str]
Py_UNICODE = Union[py_int, str]
float = py_float
double = py_float
longdouble = py_float
complex = py_complex
floatcomplex = py_complex
doublecomplex = py_complex
longdoublecomplex = py_complex
bint = py_bool
void = Union[None]
basestring = py_str
unicode = py_str
gs: Dict[str, Any] # Should match the return type of globals()
...
...
@@ -56,8 +63,7 @@ class CythonType(CythonTypeObject):
class PointerType(CythonType, Generic[_T]):
def __init__(
self,
value: Optional[Union[ArrayType[_T],
PointerType[_T], List[_T], int]] = ...
value: Optional[Union[ArrayType[_T], PointerType[_T], List[_T], int]] = ...
) -> None: ...
def __getitem__(self, ix: int) -> _T: ...
def __setitem__(self, ix: int, value: _T) -> None: ...
...
...
@@ -67,11 +73,11 @@ class PointerType(CythonType, Generic[_T]):
class ArrayType(PointerType[_T]):
def __init__(self) -> None: ...
class StructType(CythonType, Generic[_T]):
def __init__(
self,
value: List[Type[_T]] = ...
) -> None: ...
#
class StructType(CythonType, Generic[_T]):
#
def __init__(
#
self,
#
value: List[Type[_T]] = ...
#
) -> None: ...
def index_type(
base_type: _T, item: Union[tuple, slice, int]) -> _ArrayType[_T]: ...
...
...
@@ -80,7 +86,7 @@ def pointer(basetype: _T) -> Type[PointerType[_T]]: ...
def array(basetype: _T, n: int) -> Type[ArrayType[_T]]: ...
def struct(basetype: _T) -> Type[StructType[_T]]: ...
#
def struct(basetype: _T) -> Type[StructType[_T]]: ...
class typedef(CythonType, Generic[_T]):
name: str
...
...
@@ -90,7 +96,7 @@ class typedef(CythonType, Generic[_T]):
def __repr__(self) -> str: ...
__getitem__ = index_type
class _FusedType(CythonType, Generg
ic[_T]):
def __init__(self, Union[py_int, py_long, py_float, py_complex, Any]
) -> None: ...
#class _FusedType(CythonType, Gener
ic[_T]):
# def __init__(self
) -> None: ...
def fused_type(basetype: _T
) -> Type[FusedType[_T]]: ...
#def fused_type(*args: Tuple[_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