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
Kirill Smelkov
cython
Commits
8eb3fd2b
Commit
8eb3fd2b
authored
Oct 27, 2018
by
Stefan Behnel
Committed by
GitHub
Oct 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2682 from bweigel/2634_embedsignature
Fix Memviewslice docstrings & Test
parents
53e4e77b
d3f6eaa3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-1
tests/run/embedsignatures.pyx
tests/run/embedsignatures.pyx
+4
-0
No files found.
Cython/Compiler/PyrexTypes.py
View file @
8eb3fd2b
...
...
@@ -653,8 +653,9 @@ class MemoryViewSliceType(PyrexType):
assert
not
pyrex
assert
not
dll_linkage
from
.
import
MemoryView
base_code
=
str
(
self
)
if
for_display
else
MemoryView
.
memviewslice_cname
return
self
.
base_declaration_code
(
MemoryView
.
memviewslice_cnam
e
,
base_cod
e
,
entity_code
)
def
attributes_known
(
self
):
...
...
tests/run/embedsignatures.pyx
View file @
8eb3fd2b
...
...
@@ -428,6 +428,7 @@ cdef class Foo:
def
m28
(
self
,
a
:
list
(
range
(
3
))[::
1
]):
pass
def
m29
(
self
,
a
:
list
(
range
(
3
))[
0
:
1
:
1
]):
pass
def
m30
(
self
,
a
:
list
(
range
(
3
))[
7
,
3
:
2
:
1
,
...]):
pass
def
m31
(
self
,
double
[::
1
]
a
):
pass
__doc__
+=
ur"""
>>> print(Foo.m00.__doc__)
...
...
@@ -522,4 +523,7 @@ Foo.m29(self, a: list(range(3))[0:1:1])
>>> print(Foo.m30.__doc__)
Foo.m30(self, a: list(range(3))[7, 3:2:1, ...])
>>> print(Foo.m31.__doc__)
Foo.m31(self, double[::1] a)
"""
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