Better WatchCallbackType

This commit is contained in:
Will McGugan
2023-03-30 11:42:37 +01:00
parent 0a9b9603a0
commit 5d1902de86

View File

@@ -25,4 +25,11 @@ class EventTarget(Protocol):
SegmentLines = List[List["Segment"]]
CallbackType = Union[Callable[[], Awaitable[None]], Callable[[], None]]
WatchCallbackType = Union[Callable[[Any], Awaitable[None]], Callable[[Any], None]]
WatchCallbackType = Union[
Callable[[], Awaitable[None]],
Callable[[Any], Awaitable[None]],
Callable[[Any, Any], Awaitable[None]],
Callable[[], None],
Callable[[Any], None],
Callable[[Any, Any], None],
]