1
0
forked from VimPlug/jedi

Basic implementation support for namedexpr, fixes #1647

This commit is contained in:
Dave Halter
2020-08-05 10:12:47 +02:00
parent 76c0c373da
commit abf63d73d3
6 changed files with 55 additions and 3 deletions

View File

@@ -753,6 +753,8 @@ def tree_name_to_values(inference_state, context, tree_name):
types = NO_VALUES
elif typ == 'del_stmt':
types = NO_VALUES
elif typ == 'namedexpr_test':
types = infer_node(context, node)
else:
raise ValueError("Should not happen. type: %s" % typ)
return types