diff --git a/mypy/dmypy_server.py b/mypy/dmypy_server.py index 8762a05ecf94..05f921400571 100644 --- a/mypy/dmypy_server.py +++ b/mypy/dmypy_server.py @@ -620,12 +620,12 @@ def refresh_file(module: str, path: str) -> List[str]: fix_module_deps(graph) - # Store current file state as side effect - self.fswatcher.find_changed() - self.previous_sources = find_all_sources_in_build(graph) self.update_sources(self.previous_sources) + # Store current file state as side effect + self.fswatcher.find_changed() + t5 = time.time() manager.log("fine-grained increment: update: {:.3f}s".format(t5 - t1))