void () { assertTypeParameterOwner("C.method", "C", """ from typing import Callable, Generic, ParamSpec P = ParamSpec('P') class C(Generic[P]): def method(c: Callable[P, int]) -> Callable[P, str]: ... """); }