1
0
forked from VimPlug/jedi

Make Leaf public

This commit is contained in:
Dave Halter
2014-10-28 11:13:33 +01:00
parent d667f19c57
commit 19e083cbfb
4 changed files with 8 additions and 11 deletions

View File

@@ -235,7 +235,7 @@ def get_instance_el(evaluator, instance, var, is_class_var=False):
Returns an InstanceElement if it makes sense, otherwise leaves the object
untouched.
"""
if isinstance(var, (Instance, compiled.CompiledObject, pr.Operator, Token,
if isinstance(var, (Instance, compiled.CompiledObject, pr.Leaf,
pr.Module, FunctionExecution, pr.Name)):
if isinstance(var, pr.Name):
# TODO temp solution, remove later, Name should never get