Skip to content

Commit

Permalink
Merge pull request #55 from GregoirePelegrin/master
Browse files Browse the repository at this point in the history
Added simple equality operator for class Symbol
  • Loading branch information
fzumstein authored Feb 13, 2023
2 parents aa30b51 + 0ae46ad commit 9e82d07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jsondiff/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ def __repr__(self):
def __str__(self):
return "$" + self.label

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

missing = Symbol('missing')
identical = Symbol('identical')
delete = Symbol('delete')
Expand Down

0 comments on commit 9e82d07

Please sign in to comment.