File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 99from __future__ import annotations
1010
1111import logging
12- from typing import TypeAlias , NamedTuple
12+ from typing import TYPE_CHECKING , NamedTuple , Union
1313
1414from watchdog .observers .inotify_c import InotifyEvent
1515from watchdog .utils .delayed_queue import DelayedQueue
1616
17+ if TYPE_CHECKING :
18+ from typing import TypeAlias
19+
1720logger = logging .getLogger (__name__ )
1821
1922
@@ -23,7 +26,7 @@ class PathedInotifyEvent(NamedTuple):
2326 path : bytes
2427
2528
26- GroupedInotifyEvent : TypeAlias = PathedInotifyEvent | tuple [PathedInotifyEvent , PathedInotifyEvent ]
29+ GroupedInotifyEvent : TypeAlias = Union [ PathedInotifyEvent | tuple [PathedInotifyEvent , PathedInotifyEvent ] ]
2730
2831
2932class InotifyMoveEventGrouper :
You can’t perform that action at this time.
0 commit comments