-
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
Fix callback default (horror bug!) #1534
Fix callback default (horror bug!) #1534
Conversation
@hadim just letting you know :)) |
Hello @awaelchli! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-04-20 05:24:13 UTC |
Codecov Report
@@ Coverage Diff @@
## master #1534 +/- ##
======================================
Coverage 90% 90%
======================================
Files 68 68
Lines 3804 3804
======================================
Hits 3441 3441
Misses 363 363 |
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.
LGTM 🐰
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.
LGTM 🐰
What??? I didn't know that! Thanks, @awaelchli for the catch. |
Yep but no harm was done, because most users have anyway just one Trainer in their script and never got into trouble so far :) haha this is really a weird Python thing. |
Before submitting
What does this PR do?
Fixes a horror bug that took me sooo many hours to find when implementing #1450.
An argument in a function or method should NEVER be initialized to an empty list! Here is an example of what happens when you do so:
Output (on master):
Expected:
It is a big Python pitfall.
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?
Not this time! 🙃