Opened 9 years ago
Last modified 8 years ago
#26083 closed Cleanup/optimization
__eq__, __hash__ and Python 3 — at Version 1
Reported by: | Mads Jensen | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
I ran python -Werror runtests.py
for DRF, and noticed quite a lot of warnings about __eq__
and __hash__
, and then checked Django's repository.
DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
Note:
See TracTickets
for help on using tickets.
Can you point to where the errors are coming from? I'm not aware of any deprecation warnings when running Django's test suite.