Skip to content

Commit

Permalink
Merge pull request #2928 from Hofer-Julian/type-fixes
Browse files Browse the repository at this point in the history
fix: minor typing problems in utils.py
  • Loading branch information
beckermr authored Aug 13, 2024
2 parents b27d491 + baee112 commit e0ab929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_forge_tick/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit e0ab929

Please sign in to comment.