-
Notifications
You must be signed in to change notification settings - Fork 51
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 mypy issues in calculators and schema modules #2326
Fix mypy issues in calculators and schema modules #2326
Conversation
This reverts commit 9c3c892.
Can one of the admins verify this patch? |
This reverts commit 4441880.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2326 +/- ##
==========================================
- Coverage 99.06% 98.86% -0.20%
==========================================
Files 85 85
Lines 3520 3533 +13
==========================================
+ Hits 3487 3493 +6
- Misses 33 40 +7 ☔ View 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.
@AitElBadaoui: Thank you very much for your edits once again!
I have several questions below. Would you be able to address them when you get a chance? Again, most of these are genuine questions rather than critiques.
Interesting. I think this is a fair point. We do that patching here and perhaps a few other places. This is a technical necessity for some workflow tools and is very niche. For now, I would be okay with ignoring them to be honest. This whole business is coming from the fact that sometimes an |
@buildbot-princeton test this please |
Sounds good. I've already ignored this type of error. |
@buildbot-princeton test this please |
Thank you, @AitElBadaoui!! This should be good to go. I will merge later this evening :) |
a1620a9
into
Quantum-Accelerators:main
Summary of Changes
Fixed mypy issues in the calculators and schema modules.
FYI: @Andrew-S-Rosen, we reduced the number of mypy errors from 320 to 160. There are still over 130 errors in
types.py
, which I will try to fix in another PR.The remaining issues are linked to design problems such as:
Atoms
used in Quacc for the moment overload theASE Atoms
class with attributes and functions likecharges
,as_dict()
, andfrom_dict()
, which mypy does not accept. Should we ignore these, or create aQuaccAtom
class with the necessary attributes and functions? what do you think ?Requirements
main
).Notes