Skip to content

Commit 69b4fc7

Browse files
committed
fix(models): use is and is not for type comparisons
1 parent 6926d1e commit 69b4fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dwarf2cpp/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def merge(self, other: Object) -> bool:
191191
if not isinstance(other, TypeDef):
192192
return False
193193

194-
if self.kind != other.kind or self.name != other.name or type(self.value) != type(other.value):
194+
if self.kind != other.kind or self.name != other.name or type(self.value) is not type(other.value):
195195
return False
196196

197197
if isinstance(self.value, str):

0 commit comments

Comments
 (0)