mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2025-03-04 00:33:58 +00:00
fix linter warnings in dev script
This commit is contained in:
parent
f741017ef1
commit
e4eadb69db
1 changed files with 4 additions and 4 deletions
8
dev.py
8
dev.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue