nb_cli.handlers.reloader
class FileFilter(includes=None, excludes=None)
参数
includes
(list[str] | None)excludes
(list[str] | None)
class Reloader(startup_func, shutdown_func, reload_dirs=None, file_filter=None, cwd=None, stdout=None)
参数
startup_func
(() -> Coroutine[Any, Any, asyncio.subprocess.Process])shutdown_func
((asyncio.subprocess.Process) -> Coroutine[Any, Any, NoneType])reload_dirs
(list[pathlib.Path] | None)file_filter
(FileFilter | None)cwd
(pathlib.Path | None)stdout
(IO[Any] | None)
method handle_exit(self, sig, frame)
参数
sig
frame
返回
- Unknown
async method restart(self)
返回
- None
async method run(self)
返回
- None
async method should_restart(self)
返回
- list[pathlib.Path] | None
async method shutdown(self)
返回
- None
async method startup(self)
返回
- None