Skip to content

implement local version of lenient_issubclass#863

Open
gpetretto wants to merge 1 commit intomaterialsproject:mainfrom
gpetretto:bugfix
Open

implement local version of lenient_issubclass#863
gpetretto wants to merge 1 commit intomaterialsproject: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
Copy link
Copy Markdown
Contributor

FabiPi3 commented Mar 27, 2026

Thank you very much

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.

2 participants