goodconf icon indicating copy to clipboard operation
goodconf copied to clipboard

Using extra keyword arguments on `Field` is deprecated

Open ipmb opened this issue 6 months ago • 0 comments

The custom initial kwarg is a problem

  /usr/local/lib/python3.11/site-packages/pydantic/fields.py:814: PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 'initial'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/

ipmb avatar Aug 13 '24 22:08 ipmb