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

Reversible should not be a subclass of Hashable #694

Open
Zac-HD opened this issue Dec 14, 2019 · 1 comment
Open

Reversible should not be a subclass of Hashable #694

Zac-HD opened this issue Dec 14, 2019 · 1 comment

Comments

@Zac-HD
Copy link
Contributor

@Zac-HD Zac-HD commented Dec 14, 2019

Because, for example, lists are reversible but not hashable. BPO-39046 is the equivalent report for collections.abc.

I discovered this while working on HypothesisWorks/hypothesis#2274

@gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Dec 14, 2019

I suspect that whatever the reason, it's in collections.abc, not in the typing module.

@gvanrossum gvanrossum changed the title `Reversible` should not be a subclass of `Hashable` Reversible should not be a subclass of Hashable Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.