Skip to content

Commit

Permalink
Update starred expression error inline with Python
Browse files Browse the repository at this point in the history
  • Loading branch information
cibinmathew committed Oct 21, 2023
1 parent a3af87b commit e633354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -4997,7 +4997,7 @@ def visit_dict_expr(self, expr: DictExpr) -> None:

def visit_star_expr(self, expr: StarExpr) -> None:
if not expr.valid:
self.fail("Can use starred expression only as assignment target", expr, blocker=True)
self.fail("can't use starred expression here", expr, blocker=True)
else:
expr.expr.accept(self)

Expand Down

0 comments on commit e633354

Please sign in to comment.