File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 127
127
pointer_rprimitive ,
128
128
short_int_rprimitive ,
129
129
str_rprimitive ,
130
+ tuple_rprimitive ,
130
131
)
131
132
from mypyc .irbuild .util import concrete_arg_kind
132
133
from mypyc .options import CompilerOptions
@@ -1943,8 +1944,10 @@ def bool_value(self, value: Value) -> Value:
1943
1944
result = self .call_c (str_check_if_true , [value ], value .line )
1944
1945
elif is_same_type (value .type , exact_dict_rprimitive ):
1945
1946
result = self .primitive_op (dict_is_true_op , [value ], line = value .line )
1946
- elif is_same_type (value .type , list_rprimitive ) or is_same_type (
1947
- value .type , dict_rprimitive of is_same_type (value .type , tuple_rprimitive )
1947
+ elif (
1948
+ is_same_type (value .type , list_rprimitive )
1949
+ or is_same_type (value .type , dict_rprimitive )
1950
+ or is_same_type (value .type , tuple_rprimitive )
1948
1951
):
1949
1952
length = self .builtin_len (value , value .line )
1950
1953
zero = Integer (0 )
You can’t perform that action at this time.
0 commit comments