Open hmontero1205 opened 6 years ago
Your __eq__ dunder method is incorrect. This method does not define behavior for =, but instead defines behavior for ==. Your code should've looked something like
__eq__
=
==
def __eq__(self, other_user): return self.name == other_user.name and self.email == other_user.email:
You're supposed to return True if those two properties are the same, False otherwise.
True
False
Your
__eq__
dunder method is incorrect. This method does not define behavior for=
, but instead defines behavior for==
. Your code should've looked something likeYou're supposed to return
True
if those two properties are the same,False
otherwise.