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

Document support for keyword-only args #9

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

Document support for keyword-only args #9

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

Comments

@piccolbo
Copy link
Owner

It's not possible to decorate functions with keyword only args, the reason being that it's not possible to define a signature with this property. But the no arg decorator works.

@piccolbo
Copy link
Owner Author

Not sure what the UI would be: param(keyword_only=TRUE)? Verbose and easy to create impossible sigs. The * syntax can not be used as it is special to defs.

@piccolbo piccolbo added the enhancement New feature or request label Aug 23, 2019
@piccolbo
Copy link
Owner Author

piccolbo commented Aug 23, 2019

This is actually supported with a kw_only arg. Sometimes my code is so concise I forget I implemented it! But it seems missing in the docs so I will keep this open with the goal of fixing that.

@piccolbo piccolbo changed the title Support for keyword-only args Document support for keyword-only args 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