python-makefun
python-makefun copied to clipboard
`add_signature_parameters` : intelligently support parameters that can not be first or last
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 thelast_possiblewould place themselves before it. - If there are parameters without default value, parameters from the
first_possiblethat have a default value would place themselves after them