122
122
123
123
from mypy .build import (
124
124
BuildManager , State , BuildSource , BuildResult , Graph , load_graph , module_not_found ,
125
- process_fresh_scc ,
125
+ process_fresh_modules ,
126
126
PRI_INDIRECT , DEBUG_FINE_GRAINED ,
127
127
)
128
128
from mypy .checker import DeferredNode
@@ -376,7 +376,7 @@ def find_unloaded_deps(manager: BuildManager, graph: Dict[str, State],
376
376
module, we don't need to explore its dependencies. (This
377
377
invariant is slightly violated when dependencies are added, which
378
378
can be handled by calling find_unloaded_deps directly on the new
379
- dependencies)
379
+ dependencies. )
380
380
"""
381
381
worklist = list (initial )
382
382
seen = set () # type: Set[str]
@@ -398,12 +398,12 @@ def find_unloaded_deps(manager: BuildManager, graph: Dict[str, State],
398
398
399
399
def ensure_trees_loaded (manager : BuildManager , graph : Dict [str , State ],
400
400
initial : Sequence [str ]) -> None :
401
- """Ensure that the modules in initial and their deps have loaded trees"""
401
+ """Ensure that the modules in initial and their deps have loaded trees. """
402
402
to_process = find_unloaded_deps (manager , graph , initial )
403
403
if to_process :
404
- manager .log ("Calling process_fresh_scc on an 'scc' of size {} ({})" .format (
404
+ manager .log_fine_grained ("Calling process_fresh_modules on set of size {} ({})" .format (
405
405
len (to_process ), to_process ))
406
- process_fresh_scc (graph , to_process , manager )
406
+ process_fresh_modules (graph , to_process , manager )
407
407
408
408
409
409
def get_all_dependencies (manager : BuildManager , graph : Dict [str , State ]) -> Dict [str , Set [str ]]:
@@ -770,9 +770,9 @@ def find_targets_recursive(
770
770
Set [str ]]:
771
771
"""Find names of all targets that need to reprocessed, given some triggers.
772
772
773
- Returns: a tuple containing a:
773
+ Returns: A tuple containing a:
774
774
* Dictionary from module id to a set of stale targets.
775
- * A set of module ids for unparsed modules with stale targets
775
+ * A set of module ids for unparsed modules with stale targets.
776
776
"""
777
777
result = {} # type: Dict[str, Set[DeferredNode]]
778
778
worklist = triggers
0 commit comments