fix: let star_expr infer to NO_VALUES instead of crashing
This commit is contained in:
1 parent
3d2ce2e01f
commit
3454ebb1de
1 file changed
+2
@@ -251,6 +251,8 @@ def _infer_node(context, element):
|
||||
return NO_VALUES
|
||||
elif typ == 'namedexpr_test':
|
||||
return context.infer_node(element.children[2])
|
||||
elif typ == 'star_expr':
|
||||
return NO_VALUES
|
||||
else:
|
||||
return infer_or_test(context, element)
|
||||
|
||||
|
||||
Reference in new issue
Block a user