From f25fb2b7fbfed4150a83add48a1d642587d9c294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 26 Dec 2024 16:25:31 +0100 Subject: [PATCH] Reformat conda_smithy/linter/utils.py --- conda_smithy/linter/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conda_smithy/linter/utils.py b/conda_smithy/linter/utils.py index 5c9ccfddc..9745b48be 100644 --- a/conda_smithy/linter/utils.py +++ b/conda_smithy/linter/utils.py @@ -237,7 +237,9 @@ def flatten_v1_if_else(requirements: list[str | dict]) -> list[str]: for req in requirements: if isinstance(req, dict): flattened_requirements.extend(flatten_v1_if_else(req["then"])) - flattened_requirements.extend(flatten_v1_if_else(req.get("else") or [])) + flattened_requirements.extend( + flatten_v1_if_else(req.get("else") or []) + ) else: flattened_requirements.append(req) return flattened_requirements