diff --git a/sbol2/object.py b/sbol2/object.py index 4715fa1..68ec186 100644 --- a/sbol2/object.py +++ b/sbol2/object.py @@ -250,7 +250,7 @@ def compare(self, other): :return: True if the objects are identical, False if they are different. """ - if type(other) != type(self): + if type(other) is not type(self): return False if self.rdf_type != other.rdf_type: return False