+
Skip to content

When drop pydantic~1, then solve all migration warnings #1193

@Czaki

Description

@Czaki

When dropping pydantic~1 Should remove

    "ignore:Pydantic V1 style `@validator`",
    "ignore:Support for class-based `config` is deprecated",
    "ignore:`__get_validators__` is deprecated",
    "ignore:Using extra keyword arguments on `Field` is deprecated",
    "ignore:The `update_forward_refs` method is deprecated;",
    "ignore:The `copy` method is deprecated; use",
    "ignore:The private method `_iter` will be removed and should no longer be used",
    "ignore:The `validate` method is deprecated; use `model_validate` instead.",
    "ignore:The `schema_json` method is deprecated; use `model_json_schema` and json.dumps instead.",

from the list of filters in pytest config and solve pointed deprecations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载