Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add check_pydantic_core_version() #11323

Closed
samuelcolvin opened this issue Jan 23, 2025 · 0 comments · Fixed by #11324
Closed

Add check_pydantic_core_version() #11323

samuelcolvin opened this issue Jan 23, 2025 · 0 comments · Fixed by #11324
Assignees
Labels
meta high level, conceptual
Milestone

Comments

@samuelcolvin
Copy link
Member

samuelcolvin commented Jan 23, 2025

We should add a public method to pydantic that checks the correct version of pydantic_core is installed, and errors with a descriptive exception if not. The pydantic-core version should be hard coded, not use some metadata function.

This method should be public, but not be called by default - it exists to help those packaging pydantic and pydantic-core check they have compatible versions. Obviously we should call it during tests.

Related to pyodide/pyodide#5336.

@samuelcolvin samuelcolvin added the meta high level, conceptual label Jan 23, 2025
@Viicos Viicos self-assigned this Jan 23, 2025
@Viicos Viicos added this to the v2.11 milestone Jan 23, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
meta high level, conceptual
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants