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

Update pydantic support #483

Merged
merged 5 commits into from
Apr 23, 2024
Merged

Update pydantic support #483

merged 5 commits into from
Apr 23, 2024

Conversation

rahul-tuli
Copy link
Member

This PR upgrades pydantic support from v1 to v2

The changes include:

  • Using pydantic's bump-pydantic tool for the initial migration
  • Updating typing of class vars
  • Left FeatureStatus table to use BaseModel from pydantic.v1 (shipped as a part of v2) as it is a low importance feature

Test method:

  • Ran make test locally all tests are green
===================== 345 passed, 126 warnings in 656.59s (0:10:56) ======================

dbogunowicz
dbogunowicz previously approved these changes Apr 18, 2024
setup.py Show resolved Hide resolved
@rahul-tuli
Copy link
Member Author

rahul-tuli commented Apr 19, 2024

Note: We should wait until sparseml pydantic upgrade is ready to land neuralmagic/sparseml#2248

@rahul-tuli rahul-tuli merged commit f349af4 into main Apr 23, 2024
4 of 5 checks passed
@rahul-tuli rahul-tuli deleted the update-pydantic branch April 23, 2024 19:26
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