Skip to content

Commit e5a9ae6

Browse files
authored
Restrict type of AssignmentExpr.target
1 parent d8bf6e2 commit e5a9ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ class AssignmentExpr(Expression):
20752075

20762076
__match_args__ = ("target", "value")
20772077

2078-
def __init__(self, target: Expression, value: Expression) -> None:
2078+
def __init__(self, target: NameExpr, value: Expression) -> None:
20792079
super().__init__()
20802080
self.target = target
20812081
self.value = value

0 commit comments

Comments
 (0)