Skip to content

Commit 1e4f1a8

Browse files
committed
add hash function to MitreAttackGroup
1 parent bcdf2e2 commit 1e4f1a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contentctl/objects/mitre_attack_enrichment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def __lt__(self, other: MitreAttackGroup) -> bool:
9494
)
9595
return self.group < other.group
9696

97+
def __hash__(self) -> int:
98+
return id(self)
99+
97100

98101
class MitreAttackEnrichment(BaseModel):
99102
ConfigDict(extra="forbid")

0 commit comments

Comments
 (0)