Files
openide/python/testData/quickdoc/InferredCallableParameterListRendering.py
Mikhail Golubev 6626e2c98f PY-77538 Properly render PyCallableParameterListType in quick documentation
GitOrigin-RevId: d2444914d9df57dcf2c61ac1e16aefe9f577a929
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)