-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Enum construction from float worked in v2.6.4 but fails in v2.7.1 #9375
Closed
1 task done
Comments
Idealcoder
added
bug V2
Bug related to Pydantic V2
pending
Awaiting a response / confirmation
labels
May 2, 2024
Thanks for reporting this. Looks like a regression we should fix in 2.7.2. Adding this to the relevant milestone. Just got back form a week off, so I'll dive into more 2.7 fixes shortly! |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initial Checks
Description
Constructing an enum from a float worked in v2.6.4 but fails in v2.7.1.
Is this an intended change or a regression?
I see some changes around enum validation have been made #9064, pydantic/pydantic-core#1235 @samuelcolvin
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: