ruff
07286ef9 - [ty] Reject `type[Callable]` special form (#23753)

Commit
200 days ago
[ty] Reject `type[Callable]` special form (#23753) ## Summary The [typing spec](https://typing.python.org/en/latest/spec/special-types.html) says: > Any other [special forms](https://typing.python.org/en/latest/spec/glossary.html#term-special-form) like Callable are not allowed as an argument to type. We already reject `Generic` and `TypedDict`. We should probably also reject `Literal`. But this PR adds `Callable`. Closes https://github.com/astral-sh/ty/issues/2964.
Author
Parents
Loading