From a7106d8117cd4952518a1b626c41c6161085cf5e Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sat, 27 Jan 2024 17:23:04 +0800 Subject: :bookmark: chore(infini): bump infini into v2.0.0-rc.3 --- pyproject.toml | 2 +- src/infini/handler.py | 2 +- src/infini/typing.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b93fca7f..2f85fd04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "infini" -version = "2.0.0-rc.2" +version = "2.0.0-rc.3" description = "Infini 核心标准文本输入输出模块" authors = [ { name = "苏向夜", email = "fu050409@163.com" }, diff --git a/src/infini/handler.py b/src/infini/handler.py index 5a4e1649..79686485 100644 --- a/src/infini/handler.py +++ b/src/infini/handler.py @@ -12,7 +12,7 @@ class Handler: yield Output.empty() return while not queue.is_empty(): - if isinstance(stream := queue.pop()(input), Generator): # TODO 新增测试 + if isinstance(stream := queue.pop()(input), Generator): for output in stream: yield output if output.block: diff --git a/src/infini/typing.py b/src/infini/typing.py index d9db1e61..05eea05e 100644 --- a/src/infini/typing.py +++ b/src/infini/typing.py @@ -7,6 +7,7 @@ from typing import ( Literal as Literal, Sequence as Sequence, Generator as Generator, + overload as overload, TypeVar, TypedDict, Union, -- cgit v1.2.3-70-g09d2