Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 4e91d76

Browse files
committed
df: types: Definition fix comparison
Signed-off-by: John Andersen <[email protected]>
1 parent 85635e9 commit 4e91d76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dffml/df/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def __repr__(self):
5050
def __str__(self):
5151
return repr(self)
5252

53+
def __eq__(self, other):
54+
return bool(self.export() == other.export())
55+
5356
def export(self):
5457
exported = dict(self._asdict())
5558
if not self.lock:

0 commit comments

Comments
 (0)