Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python fractions as a natively supported type #9439

Open
3 of 13 tasks
etienne-monier opened this issue May 15, 2024 · 1 comment
Open
3 of 13 tasks

Add Python fractions as a natively supported type #9439

etienne-monier opened this issue May 15, 2024 · 1 comment

Comments

@etienne-monier
Copy link

Initial Checks

  • I have searched Google & GitHub for similar requests and couldn't find anything
  • I have read and followed the docs and still think this feature is missing

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

@sydney-runkle
Copy link
Member

Hi @etienne-monier,

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants