@@ -607,7 +607,7 @@ def generate_direct_dependents(
607607 dependents_list : List [str ] = []
608608 is_partial = False
609609 count = 0
610-
610+
611611 for line in stdout_content .splitlines ():
612612 if max_results is not None and count > max_results :
613613 is_partial = True
@@ -619,7 +619,7 @@ def generate_direct_dependents(
619619 dependents_found += 1
620620 dependents_list .append (dependent_name )
621621 logging .debug (f"\n Found dependent: { dependent_name } " )
622-
622+
623623 if max_results is None or count <= max_results :
624624 dependency_cache .set (package_name , dependents_list , partial = True )
625625 yield dependent_name
@@ -832,7 +832,7 @@ def compute_transitive_closure(
832832
833833 # The root package gets all results but itself as dependents
834834 max_root_dependents = max_results - 1 if max_results is not None else None
835-
835+
836836 for package , entry in dependents_map .items ():
837837 known_packages : Set [str ] = set ()
838838 transitive_dependents : List [str ] = []
@@ -843,7 +843,7 @@ def compute_transitive_closure(
843843 # (But we still need to extend the queue for the remaining of the loop to know if we're missing out
844844 # on any results because of the max_results limit)
845845 root_hit_max_dependents = False
846-
846+
847847 while queue :
848848 dependent = queue .popleft ()
849849
@@ -870,7 +870,7 @@ def compute_transitive_closure(
870870 is_partial = True
871871
872872 queue .extend (dependent_entry ["dependents" ])
873-
873+
874874 if root_hit_max_dependents :
875875 # At this point the queue accurately reflects what work is left to do
876876 # so we can use it to know if the results are complete for the root package
0 commit comments