Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions email_validator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def __getitem__(self, key):

"""Tests use this."""
def __eq__(self, other):
if not isinstance(other, ValidatedEmail):
return False
return (
self.email == other.email
and self.local_part == other.local_part
Expand Down