1
0
forked from VimPlug/jedi

Do not show signatures for properties, fixes #1695

This commit is contained in:
Dave Halter
2021-01-01 23:51:41 +01:00
parent 1ccc63e83d
commit 7d160f96f6
5 changed files with 43 additions and 4 deletions

View File

@@ -550,6 +550,8 @@ class BaseName:
return ''.join(lines[start_index:index + after + 1])
def _get_signatures(self, for_docstring=False):
if self._name.api_type == 'property':
return []
if for_docstring and self._name.api_type == 'statement' and not self.is_stub():
# For docstrings we don't resolve signatures if they are simple
# statements and not stubs. This is a speed optimization.