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 127127 pointer_rprimitive ,
128128 short_int_rprimitive ,
129129 str_rprimitive ,
130+ tuple_rprimitive ,
130131)
131132from mypyc .irbuild .util import concrete_arg_kind
132133from mypyc .options import CompilerOptions
@@ -1943,8 +1944,10 @@ def bool_value(self, value: Value) -> Value:
19431944 result = self .call_c (str_check_if_true , [value ], value .line )
19441945 elif is_same_type (value .type , exact_dict_rprimitive ):
19451946 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 )
19481951 ):
19491952 length = self .builtin_len (value , value .line )
19501953 zero = Integer (0 )
You can’t perform that action at this time.
0 commit comments