dualfroz ad3f7e7b5d fix: make Delorean hashable by defining __hash__
Defining __eq__ without __hash__ sets __hash__ to None in Python 3, so
Delorean instances were unhashable and could not be used in sets or as
dict keys (unlike datetime). Hash on self.epoch, the same value __eq__
compares, so equal instances hash equal.
2026-09-06 01:10:27 +02:00
S
Description
My contributions to myusuf3/delorean: 2 commits
71 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%