Skip to content

Commit

Permalink
Implement __eq__ for ParsedMessageCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
joweich committed Nov 27, 2023
1 parent e3e201d commit 71990a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chatminer/chatparsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def deserialize_message(mess: dict):
deserialize_message(mess) for mess in json.load(json_file)
]

def __eq__(self, other):
return self._parsed_messages == other._parsed_messages


class Parser(ABC):
def __init__(self, filepath: str):
Expand Down

0 comments on commit 71990a9

Please sign in to comment.