Skip to content

Commit 5017979

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,11 @@ def get_expr_length(expr: Expression) -> int | None:
12011201
and expr.node.has_explicit_value
12021202
):
12031203
return len(expr.node.final_value)
1204-
elif isinstance(expr, CallExpr) and isinstance(callee := expr.callee, NameExpr) and all(kind == ARG_POS for kind in expr.arg_kinds):
1204+
elif (
1205+
isinstance(expr, CallExpr)
1206+
and isinstance(callee := expr.callee, NameExpr)
1207+
and all(kind == ARG_POS for kind in expr.arg_kinds)
1208+
):
12051209
fullname = callee.fullname
12061210
if (
12071211
fullname in ("builtins.list", "builtins.tuple", "builtins.enumerate")

0 commit comments

Comments
 (0)