-
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
Disallow invalid seed string values #8787
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8787 +/- ##
========================================
+ Coverage 88% 89% +1%
========================================
Files 178 179 +1
Lines 14889 19134 +4245
========================================
+ Hits 13122 17120 +3998
- Misses 1767 2014 +247 |
utilities.seed
utilities.seed
utilities.seed
utilities.seed
utilities.seed
Dear @stancld, Any updates on this PR ? Best, |
Dear @tchaton: @awaelchli stressed the importance to keep the functionality the same. In this case, however, satisfying the requirements imposed by mypy leads to much more complex code. Since here, the possible type errors are handled by |
Yes I think we should favor reproducibility here and not the typing. Let's not change the implementation unless there is a bug. In this case ignoring a line there for mypy is well justified imo |
Dear @awaelchli @stancld, First of all, thanks @stancld for investing time and effort on this PR. This is well appreciated ! Best. |
@tchaton If it's okay I would re-write this PR tomorrow and add two ignoring comments with a supplementary one why this solution is appropriate :) |
Hey @stancld, Thanks for helping out ! Best, |
Co-authored-by: Carlos Mocholí <[email protected]>
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 !
utilities.seed
What does this PR do?
See title.
Fixes mypy typing in
utilities.seed.py
Part of #7037. This PR disentangles large #7218
Does your PR introduce any breaking changes? If yes, please list them.
Passing invalid
seed
values toseed_everything
is now disallowed.Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃