mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-17 05:14:11 +08:00
Fix an issue about boolean params resolving
This commit is contained in:
@@ -363,6 +363,10 @@ class BaseDefinition(object):
|
||||
for signature in context.get_signatures():
|
||||
return [Definition(self._evaluator, n) for n in signature.get_param_names()]
|
||||
|
||||
if self.type == 'function' or self.type == 'class':
|
||||
# Fallback, if no signatures were defined (which is probably by
|
||||
# itself a bug).
|
||||
return []
|
||||
raise AttributeError('There are no params defined on this.')
|
||||
|
||||
def parent(self):
|
||||
|
||||
Reference in New Issue
Block a user