mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-18 18:11:27 +08:00
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
|
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