-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrong
Description
Please consider:
a = 1
match a: # type: ignore
case 0:
print('is zero')
case 1:
print('is one')
then
$ mypy t5.py
t5.py:2: error: Match statement is not supported
Found 1 error in 1 file (errors prevented further checking)
I would expect Mypy to ignore the whole match block.
Or is there an option I am missing, which I can pass to Mypy?
Mypy 0.930, Python 3.10.1.
Edward-Knight, TomHall2020, jarek-webellian, heckad, MPalarya and 27 more
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrong