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

add_signature_parameters : intelligently support parameters that can not be first or last #41

Open
smarie opened this issue Jul 22, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@smarie
Copy link
Owner

smarie commented Jul 22, 2019

We could introduce two new arguments first_possible and last_possible, that would intelligently position the provided parameters according to their kind/default value.

For example

  • if there is a **kwargs, parameters from the last_possible would place themselves before it.
  • If there are parameters without default value, parameters from the first_possible that have a default value would place themselves after them
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