Closed skogsbaer closed 2 years ago
def foo(x: int | str) -> None: print(x) foo(1)
Unexpected error:
Traceback (most recent call last): File "test.py", line 6, in <module> def foo(x: int | str) -> None: AttributeError: 'types.UnionType' object has no attribute '__origin__'
fixed in 1.0.2
Unexpected error: