Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type annotate backtrack_depgraph in depgraph.py #1031

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/_emerge/depgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@
from _emerge.resolver.circular_dependency import circular_dependency_handler
from _emerge.resolver.output import Display, format_unmatched_atom

# For Type Annotations
from typing import List, Tuple, Any
from _emerge.stdout_spinner import stdout_spinner

# Exposes a depgraph interface to dep_check.
_dep_check_graph_interface = collections.namedtuple(
"_dep_check_graph_interface",
Expand Down Expand Up @@ -11385,7 +11389,7 @@ def _spinner_stop(spinner):
portage.writemsg_stdout(f"Dependency resolution took {darkgreen(time_fmt)} s.\n\n")


def backtrack_depgraph(settings, trees, myopts, myparams, myaction, myfiles, spinner):
def backtrack_depgraph(settings: "portage.package.ebuild.config.config", trees: dict, myopts: dict, myparams: dict, myaction: Any, myfiles: List, spinner: "stdout_spinner") -> Tuple[bool, depgraph, List]:
"""
Raises PackageSetNotFound if myfiles contains a missing package set.
"""
Expand Down