basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

intersection type aliases don't work without explicit `TypeAlias` annotation

Open DetachHead opened this issue 2 years ago • 0 comments

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

DetachHead avatar Sep 20 '23 07:09 DetachHead