forked from VimPlug/jedi
Make sure that infering params is possible from the API
This commit is contained in:
@@ -169,6 +169,8 @@ class InferenceState(object):
|
||||
return imports.infer_import(context, name)
|
||||
if type_ == 'with_stmt':
|
||||
return tree_name_to_values(self, context, name)
|
||||
elif type_ == 'param':
|
||||
return context.py__getattribute__(name.value, position=name.end_pos)
|
||||
else:
|
||||
result = follow_error_node_imports_if_possible(context, name)
|
||||
if result is not None:
|
||||
|
||||
Reference in New Issue
Block a user