From 540a3ee9bb81fe20c52b9c8abde6da2a4340c8f1 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Mon, 18 Dec 2023 03:00:04 +0800 Subject: chore(typing): add annotation --- src/infini/typing.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3-70-g09d2