Skip to content

Commit

Permalink
Format fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Mar 25, 2024
1 parent 2530512 commit de9c83d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def __init__(self):
def __eq__(self, other):
return isinstance(other, Person) and other.name == self.name


# OK
class Language:
def __init__(self):
Expand All @@ -16,21 +17,24 @@ def __eq__(self, other):
def __hash__(self):
return hash(self.name)


class MyClass:
def __eq__(self, other):
return True

__hash__ = None


class SingleClass:
def __eq__(self, other):
return True

def __hash__(self):
return 7


class ChildClass(SingleClass):
def __eq__(self, other):
return True

__hash__ = SingleClass.__hash__
__hash__ = SingleClass.__hash__

0 comments on commit de9c83d

Please sign in to comment.