Do not show signatures for properties, fixes #1695
This commit is contained in:
1 parent
1ccc63e83d
commit
7d160f96f6
5 files changed
+43
-4
No files matched your search
@@ -340,7 +340,7 @@ class TreeNameDefinition(AbstractTreeName):
|
||||
@inference_state_method_cache(default='')
|
||||
def py__doc__(self):
|
||||
api_type = self.api_type
|
||||
if api_type in ('function', 'class'):
|
||||
if api_type in ('function', 'class', 'property'):
|
||||
# Make sure the names are not TreeNameDefinitions anymore.
|
||||
return clean_scope_docstring(self.tree_name.get_definition())
|
||||
|
||||
|
||||
Reference in new issue
Block a user