Skip to content

Commit 11e7b75

Browse files
Generic hash function
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 09ed6c3 commit 11e7b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynatrace_extension/sdk/status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __eq__(self, other):
115115
return isinstance(other, EndpointStatus) and self.__dict__ == other.__dict__
116116

117117
def __hash__(self):
118-
return hash((self.endpoint, self.status, self.message))
118+
return hash(tuple(sorted(self.__dict__.items())))
119119

120120

121121
class EndpointStatuses:

0 commit comments

Comments
 (0)