summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Chan <chanmhy@mcmaster.ca>2018-10-02 17:26:14 -0400
committerGitHub <noreply@github.com>2018-10-02 17:26:14 -0400
commitf27475a3fb166cebc135af112a4b57c961c72fc6 (patch)
tree84d029e9a517b64f3c2a9b3314738c76cfbe8f9f
parentd1cf2648e6a4e3b681a031c9d4b42bd20e544c76 (diff)
downloadcython-f27475a3fb166cebc135af112a4b57c961c72fc6.tar.gz
Fix Memviewslice docstrings
Fixes #2634
-rw-r--r--Cython/Compiler/PyrexTypes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py
index ac5913f9a..f29bb8e02 100644
--- a/Cython/Compiler/PyrexTypes.py
+++ b/Cython/Compiler/PyrexTypes.py
@@ -653,8 +653,9 @@ class MemoryViewSliceType(PyrexType):
assert not pyrex
assert not dll_linkage
from . import MemoryView
+ base_code = self.__str__() if for_display else MemoryView.memviewslice_cname
return self.base_declaration_code(
- MemoryView.memviewslice_cname,
+ base_code,
entity_code)
def attributes_known(self):