pydantic / pydantic-extra-types

Extra Pydantic types.
MIT License
176 stars 47 forks source link

Add Python fraction to native types #173

Closed etienne-monier closed 3 months ago

etienne-monier commented 3 months ago

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!

etienne-monier commented 3 months ago

Oh sorry, I've just realized I put that on the wrong repository. This is more about pydantic itself.