-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
args should come after the last positional argument #1807
args should come after the last positional argument #1807
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1807 +/- ##
======================================
Coverage 88% 88%
======================================
Files 71 71
Lines 4431 4431
======================================
Hits 3893 3893
Misses 538 538 |
This pull request is now in conflict... :( |
+1. Recently faced this issue, it would be nice to have this behavior:
On the other hand, it'll break existing code that passes |
@Borda let's add this to 0.7.6? need to get these tests to pass |
unfortunately saw this too late but docs were not updated. |
@awaelchli I couldn't find any test cases for this, so I just left it at that. 🤷♂️ I didn't think to update it b/c no one could really use |
ok, got it. yes if it could not be used before then I understand why there is no test. |
Before submitting
What does this PR do?
Because
*args
came after the lastkwarg
in load_from_checkpoint, you couldn't pass in positional arguments correctly to the constructor of your model. This fixes that.PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃