Add a file to the watch list. All imported modules are watched by default.
(filename: str)
| 142 | |
| 143 | |
| 144 | def 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 | |
| 152 | def add_reload_hook(fn: Callable[[], None]) -> None: |