Currently I have a generic type:
class N(Generic[T]):
...
And I have a function with the following typing(not correct in python, but I believe you can get my idea):
def mayN(t: Type) -> Type:
return t | N[t]
def xxx(func: Callable[P, T], args: map(mayN, P.args)) -> None:
...
How to do it?