We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617d952 commit a4094d0Copy full SHA for a4094d0
mypyc/ir/func_ir.py
@@ -458,7 +458,9 @@ def _extract_python_literal(value: Value) -> object:
458
if is_none_rprimitive(value.type):
459
return None
460
val = value.numeric_value()
461
- return bool(val) if is_bool_rprimitive(value.type) else val
+ if is_bool_rprimitive(value.type):
462
+ return bool(val)
463
+ return val
464
elif isinstance(value, Float):
465
return value.value
466
elif isinstance(value, LoadLiteral):
0 commit comments