Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Aug 14, 2023
1 parent 35f7576 commit 34c6852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildlog_consultant/autopkgtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class AutopkgtestTestbedFailure(Problem, kind="testbed-failure"):
reason: str

def __eq__(self, other):
return type(self) == type(other) and self.reason == other.reason
return type(self) is type(other) and self.reason == other.reason

def __repr__(self) -> str:
return f"{type(self).__name__}({self.reason!r})"
Expand All @@ -88,7 +88,7 @@ class AutopkgtestErroneousPackage(Problem, kind="erroneous-package"):
reason: str

def __eq__(self, other):
return type(self) == type(other) and self.reason == other.reason
return type(self) is type(other) and self.reason == other.reason

def __repr__(self) -> str:
return f"{type(self).__name__}({self.reason!r})"
Expand Down

0 comments on commit 34c6852

Please sign in to comment.