[...]/3.11.6/lib/python3.11/site-packages/pydantic/_migration.py:290: UserWarning: `pydantic.utils:is_valid_field` has been removed. We are importing from `pydantic.v1.utils:is_valid_field` instead.See the migration guide for more details: https://docs.pydantic.dev/latest/migration/
This is because is_valid_field is imported in pydanticutils/__init__.py.
Although the code still does the right thing, I would prefer it not to be alerted with warnings on software startup.
I found no easy way to fix it because the functionality moved to _internal/_fields.py:is_valid_field_name() in pydantic V2, which should not be used by other packages.
When doing
the following warning is emitted:
This is because
is_valid_field
is imported inpydanticutils/__init__.py
.Although the code still does the right thing, I would prefer it not to be alerted with warnings on software startup.
I found no easy way to fix it because the functionality moved to
_internal/_fields.py:is_valid_field_name()
in pydantic V2, which should not be used by other packages.Versions: