Skip to content

Storage uses deprecated pydantic.config.Extra #1333

@breid1313

Description

@breid1313

When using the storage library, there are a lot of warnings from pydantic about the use of deprecated pydantic.config.Extra noting that will be removed in pydantic 3.0. The preferred method is to use string literals.

sample warning message:

PydanticDeprecatedSince20: `pydantic.config.Extra` is deprecated, use literal values instead (e.g. `extra='allow'`). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.12/migration/
    class VectorBucket(BaseModel, extra=Extra.ignore):

documentation: https://docs.pydantic.dev/latest/api/config/#pydantic.config.ConfigDict.extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    pythonPull requests that update Python code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions