Hi Gerald,
have you been shadowing the names of built-in types like int
and str
with your own objects?
>>> match 0.0:
... case int(0|1):
... print(1)
...
>>> int = "something other than the builtin 'int'"
>>> match 0.0:
... case int(0|1):
... print(1)
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
TypeError: called match pattern must be a type
>>>