-
Notifications
You must be signed in to change notification settings - Fork 28
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
Require passing parameters by name not position in many methods and functions #1333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're off to a good start here. There are some inconsistencies I've pointed out and one spot I personally feel like we're being a little over zealous with requiring everything to be a keyword argument.
also a reminder that test_no_moon
is still failing on most wheel builds for pypi.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## prep_v3.0 #1333 +/- ##
==========================================
Coverage 99.92% 99.92%
==========================================
Files 36 36
Lines 20334 20337 +3
==========================================
+ Hits 20318 20321 +3
Misses 16 16
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bhazelton this is looking good. Just a couple of preferences, but nothing major.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finished another look. I don't think I have any more comments but since this is so big I'm not sure I want to hit the button too 😆 I'll approve of what we have but if others have comments that's good too.
The merge-base changed after approval.
044ee32
to
05fcba8
Compare
05fcba8
to
f7f3ada
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll re-approve after the update. Doesn't look like much has changed on this front since my last view. Going to move forward with this PR.
Description
Require keyword arguments rather than allowing for passing arguments by position for functions & methods with many parameters. This should help users as well as ensuring that the developers can re-order input parameters or add new ones in any position without making a breaking change.
Deprecation is not really possible for this, so it's going into version 3.0.
Motivation and Context
closes #1223
Types of changes
Checklist:
Breaking change checklist: