Skip to content

Commit d7c3d1e

Browse files
committed
... make deps work without cache_fine_grained also
1 parent e3ddb81 commit d7c3d1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypy/server/update.py

+3
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ def mark_all_meta_as_memory_only(graph: Dict[str, State],
319319
def get_all_dependencies(manager: BuildManager, graph: Dict[str, State],
320320
options: Options) -> Dict[str, Set[str]]:
321321
"""Return the fine-grained dependency map for an entire build."""
322+
if not options.cache_fine_grained:
323+
for state in graph.values():
324+
state.find_fine_grained_deps()
322325
deps = {} # type: Dict[str, Set[str]]
323326
collect_dependencies(manager.modules, deps, graph)
324327
return deps

0 commit comments

Comments
 (0)