Skip to content

Commit 2fd0723

Browse files
committed
Hashable
1 parent 7488275 commit 2fd0723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ class MyComparable:
718718

719719
### Hashable
720720
* **Hashable object needs both hash() and eq() methods and it's hash value should never change.**
721-
* **Objects that compare equal must have the same hash value, meaning default hash() that returns `'id(self)'` will not do.**
721+
* **Hashable objects that compare equal must have the same hash value, meaning default hash() that returns `'id(self)'` will not do.**
722722
* **That is why Python automatically makes classes unhashable if you only implement eq().**
723723

724724
```python

0 commit comments

Comments
 (0)