mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
14 lines
314 B
Python
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)
|