3 ms·
> Not your fault at all, but mypy/pyright have very poor support for wrappers like this, and in IDEs it's common for their arg hints to devolve to a copout (arg
by heavyset_go 5y ago
> Not your fault at all, but mypy/pyright have very poor support for wrappers like this, and in IDEs it's common for their arg hints to devolve to a copout (args, kwargs) as well.
You might be able to annotate it accurately with generics, ParamSpec and Concatenate[1].
[1] https://www.python.org/dev/peps/pep-0612/ https://www.python.org/dev/peps/pep-0612/
- cgrimm1994 5y agoI'll give this a look.