'Missing return statement' error occurring in the match statement in Python 3.10. #14704
Labels
bug
mypy got something wrong
topic-match-statement
Python 3.10's match statement
topic-reachability
Detecting unreachable code
Bug Report
(A clear and concise description of what the bug is.)
To Reproduce
Expected Behavior
It should not raise error 'Missing return statement'
Actual Behavior
Raises error 'Missing return statement'.
Even changing raise inside case_ to return b"" still produces 'Missing return' error.
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: