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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
78c5fe5e
Commit
78c5fe5e
authored
Oct 28, 2017
by
Julian Gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix annotation_typing test case
parent
33074672
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tests/run/annotation_typing.pyx
tests/run/annotation_typing.pyx
+5
-5
No files found.
tests/run/annotation_typing.pyx
View file @
78c5fe5e
...
...
@@ -87,13 +87,13 @@ def pytypes_cdef(a, b=2, c=3, d=4):
def
ctypes_def
(
a
:
list
,
b
:
cython
.
int
=
2
,
c
:
cython
.
long
=
3
,
d
:
cython
.
float
=
4
)
->
list
:
"""
>>>
py
types_def([1])
('list object', '
Python object', 'Python object', 'double
')
>>>
c
types_def([1])
('list object', '
int', 'long', 'float
')
[1, 2, 3, 4.0]
>>>
py
types_def([1], 3)
('list object', '
Python object', 'Python object', 'double
')
>>>
c
types_def([1], 3)
('list object', '
int', 'long', 'float
')
[1, 3, 3, 4.0]
>>>
py
types_def(123)
>>>
c
types_def(123)
Traceback (most recent call last):
TypeError: Argument 'a' has incorrect type (expected list, got int)
"""
...
...
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