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
{{ message }}
Repository navigation
hash() of the unity type is not consistent with equality #88812
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-07-16.09:03:39.127>created_at=<Date2021-07-15.16:28:49.070>labels= ['interpreter-core', 'type-bug', '3.10', '3.11']
title='hash() of the unity type is not consistent with equality'updated_at=<Date2021-07-16.09:03:39.126>user='https://github.com/serhiy-storchaka'
Activity
serhiy-storchaka commentedon Jul 15, 2021
There is a rule: equal hashable objects should have the same hash. The unity type violates it.
And hashes of equal unity type and typing.Union are different too.
There is also a problem with a single type (see bpo-44636).
ambv commentedon Jul 16, 2021
New changeset aeaa553 by Serhiy Storchaka in branch 'main':
bpo-44646: Fix the hash of the union type. (bpo-27179)
aeaa553
ambv commentedon Jul 16, 2021
New changeset 7059880 by Miss Islington (bot) in branch '3.10':
bpo-44646: Fix the hash of the union type. (GH-27179) (bpo-27180)
7059880