Type not narrowed in walrus assignment inside match #14913
Labels
bug
mypy got something wrong
topic-match-statement
Python 3.10's match statement
topic-pep-572
PEP 572 (walrus operator)
topic-type-narrowing
Conditional type narrowing / binder
Bug Report
The type of
var
is not narrowed inmatch
statements including a walrus assignment, such asTo Reproduce
https://mypy-play.net/?mypy=master&python=3.10&gist=1a1347df9d076755e9dd6a947c97839a
Expected Behavior
Actual Behavior
Your Environment
mypy master on Python 3.10, see Playground
The text was updated successfully, but these errors were encountered: