Skip to content

Commit ff12761

Browse files
author
Guido van Rossum
committed
Fix fine-grained call to write_cache()
1 parent 7342666 commit ff12761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/server/update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def update_single(self, module: str, path: str) -> Tuple[List[str],
207207
# If deleted, module won't be in the graph.
208208
if module in graph:
209209
# Generate metadata so that we can reuse the AST in the next run.
210-
graph[module].write_cache()
210+
graph[module].write_cache(graph)
211211
for id, state in graph.items():
212212
# Look up missing ASTs from saved cache.
213213
if state.tree is None and id in manager.saved_cache:
@@ -352,7 +352,7 @@ def update_single_isolated(module: str,
352352
state.type_check_first_pass()
353353
state.type_check_second_pass()
354354
state.finish_passes()
355-
# TODO: state.write_cache()?
355+
# TODO: state.write_cache(graph)?
356356
# TODO: state.mark_as_rechecked()?
357357

358358
graph[module] = state

0 commit comments

Comments
 (0)