Skip to content

Commit d96638b

Browse files
committed
Untyped in ifexr assume float
1 parent e655f69 commit d96638b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func_adl/type_based_replacement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ def visit_IfExp(self, node: ast.IfExp) -> Any:
866866
final_type = Any
867867
if t_true == t_false:
868868
final_type = t_true
869-
elif t_true in [int, float] and t_false in [int, float]:
869+
elif t_true in [int, float, Any] and t_false in [int, float, Any]:
870870
final_type = float
871871
else:
872872
raise ValueError(

0 commit comments

Comments
 (0)