Fix an issue about boolean params resolving
This commit is contained in:
1 parent
1213b51c66
commit
8ec6f54f86
2 files changed
+10
No files matched your search
@@ -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