-
Notifications
You must be signed in to change notification settings - Fork 44
set implicit optional to true in mypy config to avert side effects and test fails from new mypy version #1790
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
Conversation
|
OK it looks like that did the trick partially: from 9 to 1 failed mypy test, can I get some help from the standards experts @zklaus @bouweandela @schlunma please - am no good at these things, and wouldn't know what to fix now 🍺 |
|
You could either try using the option ESMValCore/esmvalcore/_task.py Line 739 in b880462
and add them to a comment maybe? |
|
well that escalated real quick - I'll see about removing the |
Codecov Report
@@ Coverage Diff @@
## main #1790 +/- ##
==========================================
- Coverage 91.11% 91.11% -0.01%
==========================================
Files 203 203
Lines 10908 10906 -2
==========================================
- Hits 9939 9937 -2
Misses 969 969
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
OK so I eventually got this through the mypy hoops but am not sure of the functionality I hacked out - @bouweandela could you have a look please? 🍺 |
schlunma
left a comment
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 V.! 🚀
Sorry, this change is exactly what I meant by "remove the type hints", could have been clearer!
|
cheers, Manu! Can I nominate @bouweandela to have a looksee at it and merge, please 🍺 |
Description
Suggested by @zklaus in #1787 (review) which this PR supersedes #1787
Closes #1788
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: