You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since per your contribution guidelines you suggest opening a discussion and @jekozyra has done so I'll leave the very minimal change required for you to stop having warnings pushed to all pydantic v2 customers.
classUniversalBaseModel(pydantic.BaseModel):
classConfig:
# note smart_union has been removed here as it's now the default in pydantic v2populate_by_name=Truevalidate_by_name=True# formerly allow_population_by_field_namejson_encoders= {dt.datetime: serialize_datetime}
# Allow fields beginning with `model_` to be used in the modelprotected_namespaces= ()
Reacted by Zaeem, Michael "Mike" Churilov, Keaton Neville, Nate Halsey, Jake Proctor, Cameron Gorrie, Benjamin Gee, Simon Helsen, Kent Ma, Alexander Prams and 2 more
When a module is imported from pydantic.v1 and a user is running Python 3.14, they'll get a warning: "Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater."
It might be ok to pin to pydantic v2 or do conditional import based logic to do different things if pydantic v2 or v1 was found(for backward compatability). Otherwise mostly it means we'd have to pin to a temporary git fork till this is resolved here.
Activity
TheJedinator commentedon Sep 8, 2025
Since per your contribution guidelines you suggest opening a discussion and @jekozyra has done so I'll leave the very minimal change required for you to stop having warnings pushed to all pydantic v2 customers.
TheJedinator commentedon Sep 8, 2025
More info about pydantic unions can be found here: https://docs.pydantic.dev/latest/concepts/unions/
aprams commentedon Nov 27, 2025
We would also appreciate this! Polluting our logs currently
cmdelatorre commentedon Dec 9, 2025
Same here. We'd greatly appreciate it if this could be updated.
sidmitra commentedon Apr 21, 2026
Note that pydantic.v1 stuff might be holding up other upgrades. I believe pydantic.v1 isn't officially supported on python 3.14+
pydantic/pydantic#12618
It might be ok to pin to pydantic v2 or do conditional import based logic to do different things if pydantic v2 or v1 was found(for backward compatability). Otherwise mostly it means we'd have to pin to a temporary git fork till this is resolved here.
PS: I can send a PR if needed.
darmen-engineering commentedon May 7, 2026
Same here! @aprams Polluting our logs too.
darmen-engineering commentedon May 18, 2026
@sidmitra have you sent one? Looking forward to it :)
Add regression test for pydantic config deprecation warnings (#117)