Skip to content

Updating all type annotations to >3.10 conventions #1246

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

Merged
merged 5 commits into from
Jun 13, 2025

Conversation

tsmathis
Copy link
Collaborator

ripping the bandaid off -_-

making diffs easier to parse in #1243

@tsmathis tsmathis force-pushed the emmet-type-annotations-updates branch from f1186df to dde2ff0 Compare June 10, 2025 23:52
@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2025

Codecov Report

❌ Patch coverage is 99.47917% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.53%. Comparing base (bcc362a) to head (3a913e4).
⚠️ Report is 28 commits behind head on main.

Files with missing lines Patch % Lines
emmet-builders/emmet/builders/materials/ml.py 60.00% 2 Missing ⚠️
emmet-core/emmet/core/xas.py 60.00% 2 Missing ⚠️
...s/emmet/builders/materials/electronic_structure.py 88.88% 1 Missing ⚠️
emmet-core/emmet/core/defect.py 85.71% 1 Missing ⚠️
emmet-core/emmet/core/structure_group.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1246      +/-   ##
==========================================
- Coverage   89.55%   89.53%   -0.03%     
==========================================
  Files         150      150              
  Lines       15368    15303      -65     
==========================================
- Hits        13763    13701      -62     
+ Misses       1605     1602       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tsmathis tsmathis force-pushed the emmet-type-annotations-updates branch from dde2ff0 to 7168a54 Compare June 10, 2025 23:58
tsmathis added 2 commits June 10, 2025 16:59
remove 'Optional' annotations

update 'List' annotations to 'list'

update 'Dict' annotations to 'dict'

update 'Tuple' annoatations to 'tuple'

Remove 'Union' annotations
differs vs. 'typing._GenericAlias'
@tsmathis tsmathis force-pushed the emmet-type-annotations-updates branch from 7168a54 to 41ab593 Compare June 11, 2025 00:00
@tsmathis tsmathis requested a review from tschaume June 12, 2025 22:59
@tsmathis
Copy link
Collaborator Author

just a reminder on this one @tschaume

Copy link
Member

@tschaume tschaume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! The linebreaks for the | None are a little off I think. But that's nothing major.

@tsmathis tsmathis merged commit 076a086 into main Jun 13, 2025
8 checks passed
@tsmathis tsmathis deleted the emmet-type-annotations-updates branch June 13, 2025 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants