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 to Pydantic > 2.0 #279

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

shufflebits
Copy link

@shufflebits shufflebits commented Sep 11, 2023

Resolves #276

  • modified: fastapi_utils/api_model.py

    • New-style class config.
  • modified: fastapi_utils/api_settings.py

    • New-style class config.
  • modified: fastapi_utils/cbv.py

    • is_classvar is gone, now we use Python>=3.8 tools to check for class vars.
  • modified: poetry.lock

    • Update codecov to 2.0.13
    • I don't really understand this :-)
  • modified: pyproject.toml

    • Update Pydantic
  • modified: requirements.txt

    • Update Pydantic, fastAPI, codecov
  • modified: tests/test_api_model.py

    • from_orm() is now model_validate()
  • modified: tests/test_inferring_router.py

    • OpenAPI version is newer.

* modified:   fastapi_utils/api_model.py
    * New-style class config.

* modified:   fastapi_utils/api_settings.py
    * New-style class config.

* modified:   fastapi_utils/cbv.py
    * is_classvar is gone, now we use Python>=3.8 tools to check for class vars.

* modified:   poetry.lock
    * Update codecov to 2.0.13
    * I don't really understand this :-)

* modified:   pyproject.toml
    * Update Pydantic

* modified:   requirements.txt
    * Update Pydantic, fastAPI, codecov

* modified:   tests/test_api_model.py
    * from_orm() is now model_validate()

* modified:   tests/test_inferring_router.py
    * OpenAPI version is newer.
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.

[FEATURE] Support Pydantic 2.0
2 participants