Skip to content

Commit e2090a6

Browse files
committed
fix: use lod-style Optional for case Optional[None]
1 parent ee91ae8 commit e2090a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

taskiq/cli/worker/process_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from multiprocessing.synchronize import Event as EventType
1010
from pathlib import Path
1111
from time import sleep
12-
from typing import Any
12+
from typing import Any, Optional
1313

1414
try:
1515
from watchdog.observers import Observer
@@ -159,7 +159,7 @@ def __init__(
159159
self,
160160
args: WorkerArgs,
161161
worker_function: Callable[[WorkerArgs], None],
162-
observer: Observer | None = None, # type: ignore[valid-type]
162+
observer: Optional[Observer] = None, # type: ignore[valid-type] # noqa: UP045
163163
) -> None:
164164
self.worker_function = worker_function
165165
self.action_queue: Queue[ProcessActionBase] = Queue(-1)

0 commit comments

Comments
 (0)