Skip to content

Commit e633354

Browse files
committed
Update starred expression error inline with Python
1 parent a3af87b commit e633354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4997,7 +4997,7 @@ def visit_dict_expr(self, expr: DictExpr) -> None:
49974997

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

0 commit comments

Comments
 (0)