basedmypy
basedmypy copied to clipboard
intersection type aliases don't work without explicit `TypeAlias` annotation
Describe the problem, ie expected/actual result (if it's not blatantly obvious)
No response
Gist to reproduce
Foo = Intersection[int, str]
foo: Foo # error: invalid type