Created
March 24, 2019 12:49
-
-
Save AdamGold/d2c4fb51dbcd926e4d7934682068d339 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def compare_hash(self, other: object) -> bool: | |
"""compare keys and hashes with different entry""" | |
if not isinstance(other, Entry): | |
return NotImplemented | |
return self.key == other.key and self.hash == other.hash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment