diff --git a/mypy/dmypy_server.py b/mypy/dmypy_server.py index 5428ad7969a0..4e3b47a68c18 100644 --- a/mypy/dmypy_server.py +++ b/mypy/dmypy_server.py @@ -281,7 +281,7 @@ def initialize_fine_grained(self, sources: List[mypy.build.BuildSource]) -> Dict for meta, mypyfile, type_map in manager.saved_cache.values(): if meta.mtime is None: continue self.fswatcher.set_file_data( - meta.path, + mypyfile.path, FileData(st_mtime=float(meta.mtime), st_size=meta.size, md5=meta.hash)) # Run an update