diff --git a/pipenv/routines/update.py b/pipenv/routines/update.py index c1268b5d8..35b0fd5fd 100644 --- a/pipenv/routines/update.py +++ b/pipenv/routines/update.py @@ -112,8 +112,9 @@ def get_reverse_dependencies(project) -> Dict[str, Set[Tuple[str, str]]]: # Get installed packages for the specified interpreter pkgs = get_installed_distributions(interpreter=python_interpreter) - # Create a package dependency tree (DAG) and reverse it - dep_tree = PackageDAG.from_pkgs(pkgs).reverse() + # Create a package dependency tree (DAG) + dep_tree = PackageDAG.from_pkgs(pkgs) + dep_tree.reverse() # Initialize reverse dependency map reverse_deps = defaultdict(set)