Re:Python 3.12
by benkuykendall on Monday October 02, 2023 @09:25PM
(#37746763)
If I understand you correctly, I think ParamSpec (since 3.10) is what you are looking for, especially if you want to be generic over the type of the inner function. The example from the docs (https://docs.python.org/3/library/typing.html#typing.ParamSp...):
[ Parent
| on HN ]