mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
fix: let star_expr infer to NO_VALUES instead of crashing
This commit is contained in:
@@ -251,6 +251,8 @@ def _infer_node(context, element):
|
|||||||
return NO_VALUES
|
return NO_VALUES
|
||||||
elif typ == 'namedexpr_test':
|
elif typ == 'namedexpr_test':
|
||||||
return context.infer_node(element.children[2])
|
return context.infer_node(element.children[2])
|
||||||
|
elif typ == 'star_expr':
|
||||||
|
return NO_VALUES
|
||||||
else:
|
else:
|
||||||
return infer_or_test(context, element)
|
return infer_or_test(context, element)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user