Skip to content

implement local version of lenient_issubclass#863

Merged
utf merged 1 commit into
materialsproject:mainfrom
gpetretto:bugfix
Apr 13, 2026
Merged

implement local version of lenient_issubclass#863
utf merged 1 commit into
materialsproject:mainfrom
gpetretto:bugfix

Conversation

@gpetretto

Copy link
Copy Markdown
Contributor

Following a report from @FabiPi3, the current version of pydantic (2.12.5) raises a warning that the pydantic.v1 module is not compatible with python 3.14 or later. While this has apparently been fixed in pydantic and the warning will be gone in the next release, support for the pydantic.v1 will likely be dropped in v3: pydantic/pydantic#10033.
I think it is worth getting rid of that import right away, considering that the usage of that module is minimal in jobflow.

The implementation is slightly different from the original (https://github.com/pydantic/pydantic/blob/8ba0d00782cc453ab9542f8932ef2b2a47614594/pydantic/v1/utils.py#L181) since I think that we don't want the lenient_issuclass to ever raise an error.

@FabiPi3

FabiPi3 commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Thank you very much

@utf

utf commented Apr 13, 2026

Copy link
Copy Markdown
Member

Great, thanks @gpetretto

@utf utf merged commit 713c945 into materialsproject:main Apr 13, 2026
7 checks passed
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