Skip to content

Commit e0ab929

Browse files
authored
Merge pull request #2928 from Hofer-Julian/type-fixes
fix: minor typing problems in utils.py
2 parents b27d491 + baee112 commit e0ab929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conda_forge_tick/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def get_default_container_run_args(
193193
def run_container_task(
194194
name: str,
195195
args: Iterable[str],
196-
json_loads: Optional[Callable] = json.loads,
196+
json_loads: Callable = json.loads,
197197
tmpfs_size_mb: int = DEFAULT_CONTAINER_TMPFS_SIZE_MB,
198198
input: Optional[str] = None,
199199
mount_dir: Optional[str] = None,
@@ -639,7 +639,7 @@ def _parse_recipes(
639639
if package is None
640640
else {"name": package.get("name"), "version": package.get("version")}
641641
)
642-
if len(source) > 0:
642+
if isinstance(source, list) and len(source) > 0:
643643
source_data = {
644644
"fn": source[0].get("file_name"),
645645
"patches": source[0].get("patches"),

0 commit comments

Comments
 (0)