Basic implementation support for namedexpr, fixes #1647
This commit is contained in:
1 parent
76c0c373da
commit
abf63d73d3
6 files changed
+55
-3
No files matched your search
@@ -170,6 +170,8 @@ class InferenceState:
|
||||
return tree_name_to_values(self, context, name)
|
||||
elif type_ == 'param':
|
||||
return context.py__getattribute__(name.value, position=name.end_pos)
|
||||
elif type_ == 'namedexpr_test':
|
||||
return context.infer_node(def_)
|
||||
else:
|
||||
result = follow_error_node_imports_if_possible(context, name)
|
||||
if result is not None:
|
||||
|
||||
Reference in new issue
Block a user