Skip to content

Commit

Permalink
fix: more efficient equality check for files
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed May 21, 2022
1 parent cf29902 commit c780c46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beet/core/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def __eq__(self, other: Any) -> bool:
and (-1 if self.source_stop is None else self.source_stop)
== (-1 if other.source_stop is None else other.source_stop)
)
or self.get_content() == other.get_content()
or self.ensure_serialized() == other.ensure_serialized()
or self.ensure_deserialized() == other.ensure_deserialized()
)
Expand Down

0 comments on commit c780c46

Please sign in to comment.