Skip to content

Instantly share code, notes, and snippets.

@AdamGold
Created March 24, 2019 12:49
Show Gist options
  • Save AdamGold/d2c4fb51dbcd926e4d7934682068d339 to your computer and use it in GitHub Desktop.
Save AdamGold/d2c4fb51dbcd926e4d7934682068d339 to your computer and use it in GitHub Desktop.
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