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
An appropriate model cannot be created when using the IntEnum type in Python with values greater than 1<<63.
which is allowed in pydantic v1.
I suspect the reason might be due to Rust's i64 type restrictions not supporting larger integer values, but it indeed feels inconsistent when using IntEnum for bitwise tagging.
And I did not find anything in the migration documentation or elsewhere to suggest that this is an intentional difference after the migration, perhaps something that could usefully be added to the migration documentation.
Thanks for reporting this. Definitely doesn't seem intentional. Adding this to the 2.7 fixes milestone, as I think we could address this when we rewrite the int enum validator (hopefully soon).
Initial Checks
Description
An appropriate model cannot be created when using the IntEnum type in Python with values greater than 1<<63.
which is allowed in pydantic v1.
I suspect the reason might be due to Rust's i64 type restrictions not supporting larger integer values, but it indeed feels inconsistent when using IntEnum for bitwise tagging.
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: