Summary
ty not identifying when the first arg of a Callable is ParamSpec when within a bound TypeVar
The first argument to Callable must be either a list of types, ParamSpec, Concatenate, or ...
main.py
from collections.abc import Callable
from typing import ParamSpec, TypeVar
P = ParamSpec("P")
C = TypeVar("C", bound=Callable[P, object])
causes ty to complain:
The first argument to `Callable` must be either a list of types, ParamSpec, Concatenate, or `...` (invalid-type-form)
Version
No response
Summary
ty not identifying when the first arg of a Callable is ParamSpec when within a bound TypeVar
Playground
main.pycauses ty to complain:
Version
No response