Files
openide/python/testData/quickdoc/InferredCallableParameterListRendering.py
2024-11-21 11:26:23 +00:00

14 lines
314 B
Python

from typing import Callable, Any
class MyCallable[**P, R]:
def __call__(self, *args: P.args, **kwargs: P.kwargs):
...
def g[**P](fn: Callable[P, Any]) -> MyCallable[P, Any]:
...
def f[*Ts](x: int, /, y: list[str], *args: *Ts, z: str, **kwargs: str) -> int:
...
ex<the_ref>pr = g(f)