Skip to content

Commit 77ac6bf

Browse files
pre-commit-ci[bot]BobTheBuidler
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f01d87f commit 77ac6bf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mypyc/irbuild/ll_builder.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
pointer_rprimitive,
128128
short_int_rprimitive,
129129
str_rprimitive,
130+
tuple_rprimitive,
130131
)
131132
from mypyc.irbuild.util import concrete_arg_kind
132133
from 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)

0 commit comments

Comments
 (0)