From baee1127d4003b983a5c6f80cb0181bdcf2e1abd Mon Sep 17 00:00:00 2001 From: Julian Hofer Date: Mon, 12 Aug 2024 16:09:59 +0200 Subject: [PATCH] fix: minor typing problems in utils.py --- conda_forge_tick/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conda_forge_tick/utils.py b/conda_forge_tick/utils.py index 0dfc79a25..8a39690b7 100644 --- a/conda_forge_tick/utils.py +++ b/conda_forge_tick/utils.py @@ -193,7 +193,7 @@ def get_default_container_run_args( def run_container_task( name: str, args: Iterable[str], - json_loads: Optional[Callable] = json.loads, + json_loads: Callable = json.loads, tmpfs_size_mb: int = DEFAULT_CONTAINER_TMPFS_SIZE_MB, input: Optional[str] = None, mount_dir: Optional[str] = None, @@ -639,7 +639,7 @@ def _parse_recipes( if package is None else {"name": package.get("name"), "version": package.get("version")} ) - if len(source) > 0: + if isinstance(source, list) and len(source) > 0: source_data = { "fn": source[0].get("file_name"), "patches": source[0].get("patches"),