blob: 0b4a78baed33a68b05d4fac06ca6db169e42fa21 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
"""HydroRollCore 类型提示支持。
此模块定义了部分 HydroRollCore 使用的类型。
"""
from typing import TYPE_CHECKING, TypeVar
if TYPE_CHECKING:
from HydroRollCore.core import Core # noqa
from HydroRollCore.rule import Rule # noqa
from HydroRollCore.config import ConfigModel # noqa
__all__ = [
"T_State",
"T_Core",
"T_Rule",
"T_Config"
]
T_State = TypeVar("T_State")
T_Core = TypeVar("T_Core", bound="Core")
T_Rule = TypeVar("T_Rule", bound="Rule")
T_Config = TypeVar("T_Config", bound="ConfigModel")
|