summaryrefslogtreecommitdiff
path: root/sphinx/directives/desc.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/directives/desc.py')
-rw-r--r--sphinx/directives/desc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/desc.py b/sphinx/directives/desc.py
index 1ea973a39..60b43a5d9 100644
--- a/sphinx/directives/desc.py
+++ b/sphinx/directives/desc.py
@@ -456,7 +456,7 @@ class ClassmemberDesc(PythonDesc):
"""
def needs_arglist(self):
- return self.argtype.endswith('method')
+ return self.desctype.endswith('method')
def get_signature_prefix(self, sig):
if self.desctype == 'staticmethod':