Skip to content

Commit

Permalink
fix type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Jul 30, 2023
1 parent 6e9c0a4 commit a2cf0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymbolic/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def __setstate__(self, state):
# {{{ hash/equality backend

def is_equal(self, other):
return (type(other) == type(self)
return (type(other) is type(self)
and self.__getinitargs__() == other.__getinitargs__())

def get_hash(self):
Expand Down

0 comments on commit a2cf0e8

Please sign in to comment.