Skip to content

Commit a52d8d7

Browse files
committed
fix: name error
1 parent bd86761 commit a52d8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checkpattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def get_var(expr: Expression) -> Var:
796796
Warning: this in only true for expressions captured by a match statement.
797797
Don't call it from anywhere else
798798
"""
799-
assert isinstance(expr, NameExpr), node
799+
assert isinstance(expr, NameExpr), expr
800800
node = expr.node
801801
assert isinstance(node, Var), node
802802
return node

0 commit comments

Comments
 (0)