You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To simplify maintenance and avoid to messing around with function arguments order (it happens many times already), it would be great if we could switch our codebase to keyword-only arguments (see pep 3102).
To do a smooth transition, we might need to create a decorator that will warn the user about this feature. The decorator should stay in place for 3-4 releases (all this year (2024 and we remove it in 2025).
Please, Let me know what you think about this new feature or if you are against.
I would like to start this work earliest as possible.
ps: if we agree, all new function in DIPY codebase should follow this rules.
Thank for the feedback.
The text was updated successfully, but these errors were encountered:
Sounds reasonable! I had some related troubles during a PR last time, especially when using/changing functions written by another contributor, and this could really help.
For now, no, I do not know any tool. With might do like scikit-learn, create a decorator to warn user of this change, and apply this decorator in every single function in the codebase....
Description
Hi all,
To simplify maintenance and avoid to messing around with function arguments order (it happens many times already), it would be great if we could switch our codebase to keyword-only arguments (see pep 3102).
To do a smooth transition, we might need to create a decorator that will warn the user about this feature. The decorator should stay in place for 3-4 releases (all this year (2024 and we remove it in 2025).
Please, Let me know what you think about this new feature or if you are against.
I would like to start this work earliest as possible.
ps: if we agree, all new function in DIPY codebase should follow this rules.
Thank for the feedback.
The text was updated successfully, but these errors were encountered: