3 ms·
> parameter Specification Variables I think that's unrelated. Seems to be something that's only for Callables.
by IshKebab 4y ago
> parameter Specification Variables
I think that's unrelated. Seems to be something that's only for Callables.
- davidatbu 4y agoThen I think the issue you're talking about is actually addressed by variadic generics, for the case of typing `*args` [0] [0] https://peps.python.org/pep-0646/#args-as-a-type-variable-tuple https://peps.python.org/pep-0646/#args-as-a-type-variable-tu...
- IshKebab 4y agoAh yeah that looks like it works for `args`. Unfortunately the issues is way more common with `kwargs`. :-/
- davidatbu 4y agoIt looks like there's a PEP for **kwargs already! [0] And as (almost) always, Pyright has already implemented the provisional PEP! [0] https://github.com/python/peps/pull/2620 https://github.com/python/peps/pull/2620