MCPcopy Create free account
hub / github.com/python/mypy / ensure_trees_loaded

Function ensure_trees_loaded

mypy/server/update.py:520–532  ·  view source on GitHub ↗

Ensure that the modules in initial and their deps have loaded trees.

(
    manager: BuildManager, graph: dict[str, State], initial: Sequence[str]
)

Source from the content-addressed store, hash-verified

518
519
520def ensure_trees_loaded(
521 manager: BuildManager, graph: dict[str, State], initial: Sequence[str]
522) -> None:
523 """Ensure that the modules in initial and their deps have loaded trees."""
524 to_process = find_unloaded_deps(manager, graph, initial)
525 if to_process:
526 if is_verbose(manager):
527 manager.log_fine_grained(
528 "Calling process_fresh_modules on set of size {} ({})".format(
529 len(to_process), sorted(to_process)
530 )
531 )
532 process_fresh_modules(graph, to_process, manager)
533
534
535# The result of update_module_isolated when no blockers, with these items:

Callers 2

update_moduleMethod · 0.85
update_module_isolatedFunction · 0.85

Calls 7

process_fresh_modulesFunction · 0.90
find_unloaded_depsFunction · 0.85
is_verboseFunction · 0.85
lenFunction · 0.85
sortedFunction · 0.85
log_fine_grainedMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…