Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore(api): remove unreachable match suppressions (#39949)
nightcityblade9d81f0da107d
diff --git a/api/core/app/apps/common/workflow_response_converter.py b/api/core/app/apps/common/workflow_response_converter.pyindex 68eb95fab36..e95a68c0b44 100644--- a/api/core/app/apps/common/workflow_response_converter.py+++ b/api/core/app/apps/common/workflow_response_converter.py@@ -856,7 +856,9 @@ class WorkflowResponseConverter:return tuple(flattened_files)@classmethod- def _fetch_files_from_variable_value(cls, value: Union[dict, list, Segment]) -> Sequence[Mapping[str, Any]]:+ def _fetch_files_from_variable_value(+ cls, value: Union[dict, list, Segment, File, None]+ ) -> Sequence[Mapping[str, Any]]:"""Fetch files from variable value:param value: variable value@@ -871,7 +873,6 @@ class WorkflowResponseConverter:files.append(value.value.to_dict())case ArrayFileSegment():files.extend([i.to_dict() for i in value.value])- # pyrefly: ignore [unreachable-match-case]case File():files.append(value.to_dict())case list():diff --git a/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py b/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.pyindex 32ec381d798..3c519b3e108 100644--- a/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py+++ b/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py@@ -373,12 +373,11 @@ class EasyUIBasedGenerateTaskPipeline(BasedGenerateTaskPipeline[EasyUIAppGeneratdelta_text = ""# EasyUI streams text only; structured multimodal chunks contribute their text parts.- for content in delta_content:+ for content in cast(list[object], delta_content):logger.debug("The content type %s in LLM chunk delta message content.: %r", type(content), content)match content:case TextPromptMessageContent():delta_text += content.data- # pyrefly: ignore [unreachable-match-case]case str():delta_text += contentcase _:diff --git a/api/core/mcp/session/base_session.py b/api/core/mcp/session/base_session.pyindex f785ae6509f..26c1fc1700a 100644--- a/api/core/mcp/session/base_session.py+++ b/api/core/mcp/session/base_session.py@@ -135,7 +135,7 @@ class BaseSession[messages when entered."""- _response_streams: dict[RequestId, queue.Queue[JSONRPCResponse | JSONRPCError | HTTPStatusError]]+ _response_streams: dict[RequestId, queue.Queue[JSONRPCResponse | JSONRPCError | HTTPStatusError | None]]_request_id: int_in_flight: dict[RequestId, RequestResponder[ReceiveRequestT, SendResultT]]_receive_request_type: type[ReceiveRequestT]@@ -216,7 +216,7 @@ class BaseSession[request_id = self._request_idself._request_id = request_id + 1- response_queue: queue.Queue[JSONRPCResponse | JSONRPCError | HTTPStatusError] = queue.Queue()+ response_queue: queue.Queue[JSONRPCResponse | JSONRPCError | HTTPStatusError | None] = queue.Queue()self._response_streams[request_id] = response_queuetry:@@ -241,7 +241,6 @@ class BaseSession[continuematch response_or_error:- # pyrefly: ignore [unreachable-match-case]case None:raise MCPConnectionError(ErrorData(