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':