blob: a873194e7644d80907efd46158bda79d51dead62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# ruff: noqa: TCH001
from typing import TYPE_CHECKING, Awaitable, Callable, Optional, TypeVar
if TYPE_CHECKING:
from typing import Any
from .core import Core
from .config import ConfigModel
from .event import Event
from .rule import Rule
StateT = TypeVar("StateT")
EventT = TypeVar("EventT", bound="Event[Any]")
RuleT = TypeVar("RuleT", bound="Rule[Any, Any, Any]")
ConfigT = TypeVar("ConfigT", bound=Optional["ConfigModel"])
CoreHook = Callable[["Core"], Awaitable[None]]
EventHook = Callable[["Event[Any]"], Awaitable[None]]
|