Skip to content

Commit 3389573

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,14 @@ def get_expr_length(expr: Expression) -> int | None:
12081208
):
12091209
fullname = callee.fullname
12101210
if (
1211-
fullname in ("builtins.list", "builtins.tuple", "builtins.enumerate", "builtins.sorted", "builtins.reversed")
1211+
fullname
1212+
in (
1213+
"builtins.list",
1214+
"builtins.tuple",
1215+
"builtins.enumerate",
1216+
"builtins.sorted",
1217+
"builtins.reversed",
1218+
)
12121219
and len(expr.args) == 1
12131220
):
12141221
return get_expr_length(expr.args[0])

0 commit comments

Comments
 (0)