Skip to content

Commit 224b36c

Browse files
committed
Fix PLW1641: eq-without-hash
1 parent 44e021b commit 224b36c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

newrelic/core/attribute_filter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ def __ge__(self, other):
209209
def __repr__(self):
210210
return f"({self.name}, {bin(self.destinations)}, {self.is_wildcard}, {self.is_include})"
211211

212+
def __hash__(self):
213+
return hash((self.name, self.destinations, self.is_include, self.is_wildcard))
214+
212215
def name_match(self, name):
213216
if self.is_wildcard:
214217
return name.startswith(self.name)

0 commit comments

Comments
 (0)