Skip to content

Commit d38d4b4

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,10 @@ def get_expr_length(expr: Expression) -> int | None:
12031203
return len(expr.node.final_value)
12041204
elif isinstance(expr, CallExpr) and isinstance(callee := expr.callee, NameExpr):
12051205
fullname = callee.fullname
1206-
if fullname in ("builtins.list", "builtins.tuple", "builtins.enumerate") and len(expr.args) == 1:
1206+
if (
1207+
fullname in ("builtins.list", "builtins.tuple", "builtins.enumerate")
1208+
and len(expr.args) == 1
1209+
):
12071210
return get_expr_length(expr.args[0])
12081211
elif fullname == "builtins.map" and len(expr.args) == 2:
12091212
return get_expr_length(expr.args[1])

0 commit comments

Comments
 (0)