refactor(types): remove quoted annotations under postponed evaluation

This commit is contained in:
youhuanghe
2026-03-24 05:07:14 +00:00
committed by WangCham
parent 2911220054
commit 3f368c5764
5 changed files with 14 additions and 14 deletions

View File

@@ -29,17 +29,17 @@ class RequestRunner(abc.ABC):
name: str = None
ap: 'app.Application'
ap: app.Application
pipeline_config: dict
def __init__(self, ap: 'app.Application', pipeline_config: dict):
def __init__(self, ap: app.Application, pipeline_config: dict):
self.ap = ap
self.pipeline_config = pipeline_config
@abc.abstractmethod
async def run(
self, query: 'pipeline_query.Query'
) -> typing.AsyncGenerator['provider_message.Message | provider_message.MessageChunk', None]:
self, query: pipeline_query.Query
) -> typing.AsyncGenerator[provider_message.Message | provider_message.MessageChunk, None]:
"""运行请求"""
pass

View File

@@ -30,9 +30,9 @@ class ToolLoader(abc.ABC):
name: str = None
ap: 'app.Application'
ap: app.Application
def __init__(self, ap: 'app.Application'):
def __init__(self, ap: app.Application):
self.ap = ap
async def initialize(self):

View File

@@ -18,13 +18,13 @@ importutil.import_modules_in_pkg(loaders)
class ToolManager:
"""LLM工具管理器"""
ap: 'app.Application'
ap: app.Application
native_tool_loader: native_loader.NativeToolLoader
plugin_tool_loader: plugin_loader.PluginToolLoader
mcp_tool_loader: mcp_loader.MCPLoader
def __init__(self, ap: 'app.Application'):
def __init__(self, ap: app.Application):
self.ap = ap
async def initialize(self):