Fix docstrings for param completions, fixes #2063, fixes #2109

This commit is contained in:
Dave Halter committed 2026-09-27 11:41:13 +02:00
1 parent 112d255414
commit ed47f89162
2 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -551,7 +551,7 @@ class BaseName:
return ''.join(lines[start_index:index + after + 1])
def _get_signatures(self, for_docstring=False):
if self._name.api_type == 'property':
if self._name.api_type in ('property', 'param'):
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