aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/hrc/typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'hrc/typing.py')
-rw-r--r--hrc/typing.py22
1 files changed, 17 insertions, 5 deletions
diff --git a/hrc/typing.py b/hrc/typing.py
index b3ced30..934fc98 100644
--- a/hrc/typing.py
+++ b/hrc/typing.py
@@ -1,7 +1,19 @@
-from typing import TypeVar, Generic, Any, TYPE_CHECKING, Awaitable, Callable, Optional
+# ruff: noqa: TCH001
+from typing import TYPE_CHECKING, Awaitable, Callable, Optional, TypeVar
if TYPE_CHECKING:
- from .rules import Rules
-
-
-RulesT = TypeVar("RulesT", bound="Rules[Any]") \ No newline at end of file
+ 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]] \ No newline at end of file