MCPcopy Index your code
hub / github.com/python/mypy / update_changed

Method update_changed

mypy/fswatcher.py:95–106  ·  view source on GitHub ↗

Alternative to find_changed() given explicit changes. This only calls self.fs.stat() on added or updated files, not on all files. It believes all other files are unchanged! Implies add_watched_paths() for add and update, and remove_watched_paths() for remove.

(self, remove: list[str], update: list[str])

Source from the content-addressed store, hash-verified

93 return self._find_changed(self._paths)
94
95 def update_changed(self, remove: list[str], update: list[str]) -> AbstractSet[str]:
96 """Alternative to find_changed() given explicit changes.
97
98 This only calls self.fs.stat() on added or updated files, not
99 on all files. It believes all other files are unchanged!
100
101 Implies add_watched_paths() for add and update, and
102 remove_watched_paths() for remove.
103 """
104 self.remove_watched_paths(remove)
105 self.add_watched_paths(update)
106 return self._find_changed(update)

Callers

nothing calls this directly

Calls 3

remove_watched_pathsMethod · 0.95
add_watched_pathsMethod · 0.95
_find_changedMethod · 0.95

Tested by

no test coverage detected