1
0
forked from VimPlug/jedi

Make sure that del_stmt as a name can be handled, see #313

This commit is contained in:
Dave Halter
2020-01-23 23:58:45 +01:00
parent 290e2151df
commit 11b61596e0
4 changed files with 32 additions and 3 deletions

View File

@@ -725,7 +725,9 @@ def tree_name_to_values(inference_state, context, tree_name):
# the static analysis report.
exceptions = context.infer_node(tree_name.get_previous_sibling().get_previous_sibling())
types = exceptions.execute_with_values()
elif node.type == 'param':
elif typ == 'param':
types = NO_VALUES
elif typ == 'del_stmt':
types = NO_VALUES
else:
raise ValueError("Should not happen. type: %s" % typ)