fix linter warnings in dev script

This commit is contained in:
Izalia Mae 2025-02-11 13:01:48 -05:00
parent f741017ef1
commit e4eadb69db

8
dev.py
View file

@ -150,8 +150,8 @@ def handle_run_watcher(
handler.run_procs() handler.run_procs()
watcher = Observer() watcher = Observer()
watcher.schedule(handler, str(watch_path), recursive=True) # type: ignore watcher.schedule(handler, str(watch_path), recursive=True)
watcher.start() # type: ignore watcher.start()
try: try:
while True: while True:
@ -161,7 +161,7 @@ def handle_run_watcher(
pass pass
handler.kill_procs() handler.kill_procs()
watcher.stop() # type: ignore watcher.stop()
watcher.join() watcher.join()
@ -170,7 +170,7 @@ class WatchHandler(PatternMatchingEventHandler):
def __init__(self, *commands: Sequence[str], wait: bool = False) -> None: def __init__(self, *commands: Sequence[str], wait: bool = False) -> None:
PatternMatchingEventHandler.__init__(self) # type: ignore PatternMatchingEventHandler.__init__(self)
self.commands: Sequence[Sequence[str]] = commands self.commands: Sequence[Sequence[str]] = commands
self.wait: bool = wait self.wait: bool = wait