Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored and mergify[bot] committed Jan 5, 2025
1 parent c536950 commit b3ccb2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nixpkgs_review/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ def get_github_action_eval_result(
continue
if (path := changed_paths.get("rebuildsByPlatform")) is not None:
assert isinstance(path, dict)
return path
return {
# Convert package lists to package sets
system: set(packages_list)
for system, packages_list in path.items()
}

if not found_comparison:
if workflow_run["status"] == "queued":
Expand Down
1 change: 1 addition & 0 deletions nixpkgs_review/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ def filter_packages(
nix_path: str,
) -> set[str]:
packages: set[str] = set()
assert isinstance(changed_packages, set)

if (
len(specified_packages) == 0
Expand Down

0 comments on commit b3ccb2a

Please sign in to comment.