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
Seems like a great feature request, and sort of goes along with the complex number support request. PRs welcome - we'd want to add support in pydantic first, but probably add support in pydantic-core eventually!
Initial Checks
Description
Hi,
Python fractions belongs to the standard library and that would be great to have is as natively supported type.
Is there another way to implement it ? Using validators and serializers ?
Thanks for your help!
Affected Components
.model_dump()
and.model_dump_json()
model_construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: