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

Method add_watched_paths

mypy/fswatcher.py:47–53  ·  view source on GitHub ↗
(self, paths: Iterable[str])

Source from the content-addressed store, hash-verified

45 self._file_data[path] = data
46
47 def add_watched_paths(self, paths: Iterable[str]) -> None:
48 for path in paths:
49 if path not in self._paths:
50 # By storing None this path will get reported as changed by
51 # find_changed if it exists.
52 self._file_data[path] = None
53 self._paths |= set(paths)
54
55 def remove_watched_paths(self, paths: Iterable[str]) -> None:
56 for path in paths:

Callers 2

update_changedMethod · 0.95
update_sourcesMethod · 0.80

Calls 1

setClass · 0.85

Tested by

no test coverage detected