Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

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
@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
@rahul-tuli rahul-tuli deleted the update-pydantic branch April 23, 2024 19:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants