basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

Secretly support `TypeForm`s when used with `type`

Open KotlinIsland opened this issue 1 year ago • 0 comments

def f(f: type[T]) -> T: ...

reveal_type(  # int | str
    f(int | str)  # error: This is a `TypeForm` not a type
)

KotlinIsland avatar Apr 24 '24 00:04 KotlinIsland