diff --git a/email_validator/__init__.py b/email_validator/__init__.py index f960f67..b18ba25 100644 --- a/email_validator/__init__.py +++ b/email_validator/__init__.py @@ -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