Skip to content

Deprecation Warning: The dict method is deprecated; use model_dump instead #113

@AntoniaJost

Description

@AntoniaJost

Description

I encountered a deprecation warning when running climsight. The warning message suggests using the model_dump method instead. This warning occurs in the following context:

/home/anjost001/.local/lib/python3.10/site-packages/pydantic/main.py:1070: PydanticDeprecatedSince20: The `dict` method is deprecated; use `model_dump` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.7/migration/
  warnings.warn('The `dict` method is deprecated; use `model_dump` instead.', category=PydanticDeprecatedSince20)

Steps to Reproduce

  1. Activate the environment
  2. Run ClimSight

Expected Behavior

No deprecation warning should appear when using the dict method.

Actual Behavior

A deprecation warning appears, indicating that the dict method is deprecated and suggesting the use of model_dump instead.

Environment

  • Python version: 3.10.14
  • Pydantic version: 2.8.2
  • Operating System: Ubuntu 22.04.4 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions