Skip to content

Commit f113166

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0050b5c commit f113166

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
@@ -1942,8 +1942,11 @@ def bool_value(self, value: Value) -> Value:
19421942
result = self.call_c(str_check_if_true, [value], value.line)
19431943
elif is_same_type(value.type, exact_dict_rprimitive):
19441944
result = self.primitive_op(dict_is_true_op, [value], line=value.line)
1945-
elif is_same_type(value.type, list_rprimitive) or is_same_type(
1946-
value.type, dict_rprimitive) or is_same_type(value.type, tuple_rprimitive):
1945+
elif (
1946+
is_same_type(value.type, list_rprimitive)
1947+
or is_same_type(value.type, dict_rprimitive)
1948+
or is_same_type(value.type, tuple_rprimitive)
1949+
):
19471950
length = self.builtin_len(value, value.line)
19481951
zero = Integer(0)
19491952
result = self.binary_op(length, zero, "!=", value.line)

0 commit comments

Comments
 (0)