Skip to content
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

Correct typing of TaskDoc.transformations field #937

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

esoteric-ephemera
Copy link
Contributor

@esoteric-ephemera esoteric-ephemera commented Feb 14, 2024

Objects stored in TaskDoc.transformations can be serialized at init (for example, pymatgen.alchemy.materials.TransformedStructure), which leads to pydantic typing errors. This happens in atomate2 when output references are resolved, see discussion in atomate2 PR #623.

This PR allows the typing of TaskDoc.transformations to be Any, and adds tests for the new behavior.

This would close atomate2 issue #607.

@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d8d6941) 90.15% compared to head (df72990) 90.21%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #937      +/-   ##
==========================================
+ Coverage   90.15%   90.21%   +0.06%     
==========================================
  Files         138      138              
  Lines       13159    13159              
==========================================
+ Hits        11864    11872       +8     
+ Misses       1295     1287       -8     

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

@utf
Copy link
Member

utf commented Feb 15, 2024

Hi @munrojm, once this is merged is it possible to get a new emmet-core released?

Were't hoping this will be the final fix needed to support the latest pydantic version in atomate2.

@munrojm munrojm added the release:patch Patch updates label Feb 15, 2024
@munrojm munrojm merged commit 2fa80de into materialsproject:main Feb 15, 2024
10 checks passed
@munrojm
Copy link
Member

munrojm commented Feb 15, 2024

Yup! Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:patch Patch updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants