Skip to content

Commit 9082b57

Browse files
authored
Fix typo in LiteralType.merge (#201)
1 parent ba8bd6f commit 9082b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helion/_compiler/type_propagation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def truth_value(self) -> bool:
633633
return bool(self.value)
634634

635635
def merge(self, other: TypeInfo) -> TypeInfo:
636-
if type(other) is type(self) and self.value is other.value:
636+
if type(other) is type(self) and self.value == other.value:
637637
return self
638638
if isinstance(other, (LiteralType, NumericType)):
639639
if NumericType.known_equal(other.value, self.value):

0 commit comments

Comments
 (0)