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
I'm assuming that equality should be enforced on field types such as NameEmail. At the moment it seems that instances that appear to be equal are generating different hashes. Unsure if this is desired, but I would argue it shouldn't be.
importpydantic# will raise an AssertionErrorassertpydantic.NameEmail("test", "test@test.com") ==pydantic.NameEmail("test", "test@test.com")
The text was updated successfully, but these errors were encountered:
Bug
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:I'm assuming that equality should be enforced on field types such as
NameEmail
. At the moment it seems that instances that appear to be equal are generating different hashes. Unsure if this is desired, but I would argue it shouldn't be.The text was updated successfully, but these errors were encountered: