diff options
| author | 2023-12-18 03:00:04 +0800 | |
|---|---|---|
| committer | 2023-12-18 03:00:04 +0800 | |
| commit | 540a3ee9bb81fe20c52b9c8abde6da2a4340c8f1 (patch) | |
| tree | 02dc4f758a7cff86b209088d2ea851831b471ebc | |
| parent | fe0c5b0a90e7dd906c1107846e1565a895eda48a (diff) | |
| download | infini-540a3ee9bb81fe20c52b9c8abde6da2a4340c8f1.tar.gz infini-540a3ee9bb81fe20c52b9c8abde6da2a4340c8f1.zip | |
chore(typing): add annotation
| -rw-r--r-- | src/infini/typing.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/infini/typing.py b/src/infini/typing.py index 08015b0e..58d2b80d 100644 --- a/src/infini/typing.py +++ b/src/infini/typing.py @@ -1,3 +1,8 @@ +"""Infini 类型提示支持。 + +此模块定义了部分 Infini 使用的类型。 +""" + from typing import ( Dict as Dict, Any as Any, @@ -12,4 +17,6 @@ from typing import ( if TYPE_CHECKING: from typing import Any -StateT = TypeVar("StateT")
\ No newline at end of file +__all__ = ["StateT"] + +StateT = TypeVar("StateT") |
