Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for *args and **kwargs arguments #10

Open
piccolbo opened this issue Aug 23, 2019 · 0 comments
Open

Support for *args and **kwargs arguments #10

piccolbo opened this issue Aug 23, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@piccolbo
Copy link
Owner

we could use special names _args and _kwargs. They could be be initalized with param, meaning that the same properties apply to all arguments in that group. Default or position don't apply but one may want to convert each of the *args to int, or validate each of the kwargs in some way

@autosig(Signature(x, _args, _kwargs_)
def f(*args, **kwargs):

Or one could extend param with an argType selector between regular, var arg and var kwarg.
This way one is limited to these two names, which covers 90% of usage maybe but it's limiting

@piccolbo piccolbo added the enhancement New feature or request label Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant