You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/tmp/foo.py", line 6, in <module>
case T(): ...
^^^
TypeError: called match pattern must be a type
The error message is confusing because T is a type. The error message should probably say class instead of type, since as per the specification it's a class pattern.