4 ms·
Then 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
by davidatbu 4y ago
Then 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