We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd86761 commit a52d8d7Copy full SHA for a52d8d7
mypy/checkpattern.py
@@ -796,7 +796,7 @@ def get_var(expr: Expression) -> Var:
796
Warning: this in only true for expressions captured by a match statement.
797
Don't call it from anywhere else
798
"""
799
- assert isinstance(expr, NameExpr), node
+ assert isinstance(expr, NameExpr), expr
800
node = expr.node
801
assert isinstance(node, Var), node
802
return node
0 commit comments