MCPcopy
hub / github.com/tornadoweb/tornado / watch

Function watch

tornado/autoreload.py:144–149  ·  view source on GitHub ↗

Add a file to the watch list. All imported modules are watched by default.

(filename: str)

Source from the content-addressed store, hash-verified

142
143
144def watch(filename: str) -> None:
145 """Add a file to the watch list.
146
147 All imported modules are watched by default.
148 """
149 _watched_files.add(filename)
150
151
152def add_reload_hook(fn: Callable[[], None]) -> None:

Callers 1

mainFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected