Repository navigation
Conversation
|
Hi maintainers, gentle ping on this one when you have a moment. It's a small fix (clearing an optional agent variable parameter now leaves it unset instead of passing an empty value) with regression tests, and CI is green. Happy to adjust anything. Thanks! |
|
Please resolve the conflicts |
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-11-10 10:37:36.405441607 +0000
+++ /tmp/pyrefly_pr.txt 2026-11-10 10:37:23.925388020 +0000
@@ -996,10 +996,30 @@
--> tests/e2e_tests/containers/services/test_model_provider_service.py:147:24
ERROR Argument `str` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
--> tests/e2e_tests/containers/services/test_model_provider_service.py:184:24
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_schedule_service.py:30:20
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_schedule_service.py:32:58
+ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `events.event_handlers.sync_workflow_schedule_when_app_published.sync_schedule_from_workflow` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_schedule_service.py:319:26
+ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `events.event_handlers.sync_workflow_schedule_when_app_published.sync_schedule_from_workflow` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_schedule_service.py:353:26
+ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `events.event_handlers.sync_workflow_schedule_when_app_published.sync_schedule_from_workflow` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_schedule_service.py:382:22
ERROR Argument `Literal['chat']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
--> tests/e2e_tests/containers/services/test_webapp_auth_service.py:45:14
ERROR Argument `Literal['emoji']` is not assignable to parameter `icon_type` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `models.model.App.__init__` [bad-argument-type]
--> tests/e2e_tests/containers/services/test_webapp_auth_service.py:46:19
+ERROR Argument `Literal['workflow']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_webhook_service.py:62:14
+ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_webhook_service_relationships.py:69:72
+ERROR Argument `Literal['workflow']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.App.__init__` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_webhook_service_relationships.py:91:18
+ERROR Argument `Literal['emoji']` is not assignable to parameter `icon_type` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `models.model.App.__init__` [bad-argument-type]
+ --> tests/e2e_tests/containers/services/test_webhook_service_relationships.py:92:23
+ERROR Class `WebhookServiceRelationshipFactory` has no class attribute `_read_cache` [missing-attribute]
+ --> tests/e2e_tests/containers/services/test_webhook_service_relationships.py:549:26
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/e2e_tests/containers/services/test_workflow_app_service.py:126:38
ERROR Argument `Literal['app-run']` is not assignable to parameter `triggered_from` with type `SQLCoreOperations[WorkflowRunTriggeredFrom] | WorkflowRunTriggeredFrom` in function `models.workflow.WorkflowRun.__init__` [bad-argument-type]
@@ -1578,6 +1598,12 @@
--> tests/e2e_tests/containers/trigger/conftest.py:65:14
ERROR Argument `Literal['emoji']` is not assignable to parameter `icon_type` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `models.model.App.__init__` [bad-argument-type]
--> tests/e2e_tests/containers/trigger/conftest.py:66:19
+ERROR Argument `str | None` is not assignable to parameter `workflow_id` with type `SQLCoreOperations[str] | str` in function `models.trigger.WorkflowTriggerLog.__init__` [bad-argument-type]
+ --> tests/e2e_tests/containers/trigger/test_trigger_e2e.py:208:25
+ERROR Argument `dict[str, str | dict[str, str | dict[str, str]]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `core.trigger.debug.event_selectors.TriggerDebugEventPoller.__init__` [bad-argument-type]
+ --> tests/e2e_tests/containers/trigger/test_trigger_e2e.py:310:21
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+ --> tests/e2e_tests/containers/trigger/test_trigger_e2e.py:611:49
ERROR Class member `StaticRepo.get_form` overrides parent class `HumanInputFormRepository` in an inconsistent manner [bad-override]
--> tests/e2e_tests/contracts/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:137:9
ERROR Argument `_TestFileReferenceFactory` is not assignable to parameter `file_reference_factory` with type `DifyFileReferenceFactory | None` in function `core.workflow.nodes.human_input.callback.DifyHITLCallback.__init__` [bad-argument-type]
@@ -1976,6 +2002,24 @@
--> tests/helpers/workflow/table_runner.py:390:37
WARN `URLError` is already caught earlier in this `try` statement, so it never matches here [unreachable-except-clause]
--> tests/pytest_dify.py:155:34
+ERROR Object of class `IExecutionContext` has no attribute `context_vars` [missing-attribute]
+ --> tests/unit_tests/context/test_execution_context.py:320:16
+ERROR Object of class `BaseModel` has no attribute `base_url` [missing-attribute]
+ --> tests/unit_tests/context/test_execution_context.py:341:16
+ERROR Object of class `BaseModel` has no attribute `base_url` [missing-attribute]
+ --> tests/unit_tests/context/test_execution_context.py:342:16
+ERROR Object of class `Flask` has no attribute `_get_current_object` [missing-attribute]
+ --> tests/unit_tests/context/test_flask_app_context.py:73:20
+ERROR Object of class `Flask` has no attribute `_get_current_object` [missing-attribute]
+ --> tests/unit_tests/context/test_flask_app_context.py:135:20
+ERROR Object of class `IExecutionContext` has no attribute `context_vars` [missing-attribute]
+ --> tests/unit_tests/context/test_flask_app_context.py:165:20
+ERROR Object of class `Flask` has no attribute `_get_current_object` [missing-attribute]
+ --> tests/unit_tests/context/test_flask_app_context.py:208:22
+ERROR Object of class `Flask` has no attribute `_get_current_object` [missing-attribute]
+ --> tests/unit_tests/context/test_flask_app_context.py:266:20
+ERROR Object of class `Flask` has no attribute `_get_current_object` [missing-attribute]
+ --> tests/unit_tests/context/test_flask_app_context.py:295:20
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
--> tests/unit_tests/controllers/console/app/test_app.py:173:13
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
@@ -1994,6 +2038,8 @@
--> tests/unit_tests/controllers/console/app/test_app.py:1075:9
ERROR `str` is not assignable to dict key `strategy` with type `bool | list[Unknown]` [bad-assignment]
--> tests/unit_tests/controllers/console/app/test_app.py:1113:38
+ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `SQLCoreOperations[str] | str` in function `models.model.App.__init__` [bad-argument-type]
+ --> tests/unit_tests/controllers/console/app/test_app_import.py:135:31
ERROR Cannot index into `object` [bad-index]
--> tests/unit_tests/controllers/console/app/test_audio.py:341:16
ERROR Cannot index into `object` [bad-index]
@@ -2084,6 +2130,12 @@
--> tests/unit_tests/controllers/console/auth/test_email_register.py:236:12
ERROR Object of class `FunctionType` has no attribute `side_effect` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_email_register.py:268:5
+ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
+ --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:83:9
+ERROR Unexpected keyword argument `created_at` in function `models.workflow.WorkflowNodeExecutionModel.__init__` [unexpected-keyword]
+ --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline_workflow.py:876:9
+ERROR Argument `datetime | None` is not assignable to parameter `value` with type `SQLCoreOperations[datetime] | datetime` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
+ --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline_workflow.py:924:27
ERROR Unpacked keyword argument `int | str | Unknown` is not assignable to parameter `tenant_id` with type `SQLCoreOperations[str] | str` in function `models.dataset.Document.__init__` [bad-argument-type]
--> tests/unit_tests/controllers/console/datasets/test_datasets_document.py:615:9
ERROR Unpacked keyword argument `int | str | Unknown` is not assignable to parameter `dataset_id` with type `SQLCoreOperations[str] | str` in function `models.dataset.Document.__init__` [bad-argument-type]
@@ -2646,6 +2698,8 @@
--> tests/unit_tests/controllers/service_api/test_wraps.py:963:16
ERROR Object of class `FromClause` has no attribute `drop` [missing-attribute]
--> tests/unit_tests/controllers/trigger/test_trigger.py:46:5
+ERROR `_RequestStub` is not assignable to attribute `request` with type `Request` [bad-assignment]
+ --> tests/unit_tests/controllers/trigger/test_webhook.py:47:22
ERROR Argument `None` is not assignable to parameter `type` with type `EndUserType | SQLCoreOperations[EndUserType]` in function `models.model.EndUser.__init__` [bad-argument-type]
--> tests/unit_tests/controllers/web/test_wraps.py:387:81
ERROR Expected 1 more positional argument [bad-argument-count]
@@ -2691,65 +2745,47 @@
ERROR `in` is not supported between `Literal['```json {"a":1}']` and `AgentScratchpadUnit.Action` [unsupported-operation]
--> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:169:20
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:180:71
-ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:196:71
-ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:198:34
-ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:210:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:186:71
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:226:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:195:71
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:231:71
-ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:237:71
-ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:244:71
-ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:249:71
-ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:267:71
-ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:276:71
-ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:288:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:207:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:289:23
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:208:23
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:296:75
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:215:75
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:297:27
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:216:27
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:302:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:221:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:303:25
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:222:25
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:310:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:229:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:311:25
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:230:25
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:323:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:242:71
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:336:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:255:71
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:344:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:263:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:345:38
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:264:38
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:365:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:284:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:367:25
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:286:25
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:397:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:316:71
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:403:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:322:71
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:411:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:330:71
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:418:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:337:71
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
- --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:430:71
+ --> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:349:71
ERROR `None` is not assignable to attribute `agent_callback` with type `DifyAgentCallbackHandler` [bad-assignment]
--> tests/unit_tests/core/agent/test_cot_agent_runner.py:143:29
ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
@@ -2935,105 +2971,105 @@
ERROR Argument `dict[str, list[dict[VariableEntityType, dict[str, str]]]]` is not assignable to parameter `config` with type `AppModelConfigDict` in function `core.app.app_config.easy_ui_based_app.variables.manager.BasicVariablesConfigManager.convert` [bad-argument-type]
--> tests/unit_tests/core/app/app_config/easy_ui_based_app/variables/test_manager.py:93:67
ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:272:22
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:261:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:283:22
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:272:22
ERROR Object of class `object` has no attribute `files` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:379:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:368:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `RuntimeState` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:435:33
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:424:33
ERROR Object of type `Generator[Mapping[str, Any] | str] | Mapping[str, Any]` has no attribute `resumed` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:439:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:428:16
ERROR Object of class `object` has no attribute `single_iteration_run` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:504:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:493:16
ERROR Object of class `object` has no attribute `extras` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:505:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:494:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.single_loop_generate` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:557:18
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:546:18
ERROR Object of class `object` has no attribute `single_loop_run` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:567:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:556:16
ERROR Object of class `object` has no attribute `extras` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:568:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:557:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `pause_state_config` with type `PauseStateLayerConfig | None` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:667:32
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:656:32
ERROR Cannot index into `Generator[Mapping[str, Any] | str]` [bad-index]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:670:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:659:16
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:674:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:663:16
ERROR Argument `str | None` is not assignable to parameter `s` with type `bytearray | bytes | str` in function `json.loads` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:679:27
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:668:27
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:854:13
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:793:13
ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:896:27
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:835:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:901:25
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:840:25
ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:947:27
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:886:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:952:25
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:891:25
ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1009:23
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:948:23
ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1014:21
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:953:21
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `RuntimeState | None` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1018:33
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:957:33
ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1082:23
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1021:23
ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1087:21
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1026:21
ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1150:27
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1089:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1155:25
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1094:25
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1206:31
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1145:31
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1216:41
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1155:41
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1254:35
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1193:35
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._handle_advanced_chat_response` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1264:45
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1203:45
ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1328:23
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1267:23
ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1333:21
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1272:21
ERROR Object of class `NoneType` has no attribute `show_retrieve_source` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1401:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1340:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `RuntimeState` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1520:33
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1459:33
ERROR Object of type `Generator[Mapping[str, Any] | str] | Mapping[str, Any]` has no attribute `ok` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1523:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1462:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `RuntimeState` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1577:33
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1516:33
ERROR Object of type `Generator[Mapping[str, Any] | str] | Mapping[str, Any]` has no attribute `ok` [missing-attribute]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1580:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1519:16
ERROR Argument `Literal['advanced-chat', 'agent', 'agent-chat', 'channel', 'chat', 'completion', 'rag-pipeline', 'workflow']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.Conversation.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1675:14
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1614:14
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `ConversationStatus | SQLCoreOperations[ConversationStatus]` in function `models.model.Conversation.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1681:16
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1620:16
ERROR Argument `Literal['web-app']` is not assignable to parameter `invoke_from` with type `InvokeFrom | SQLCoreOperations[InvokeFrom | None] | None` in function `models.model.Conversation.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1682:21
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1621:21
WARN Identity comparison `True is False` is always False [unnecessary-comparison]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1822:42
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1761:42
ERROR Class member `_StubToolNode._get_error_strategy` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1853:9
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1792:9
ERROR Class member `_StubToolNode._get_retry_config` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1856:9
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1795:9
ERROR Class member `_StubToolNode._get_title` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1859:9
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1798:9
ERROR Class member `_StubToolNode._get_description` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1862:9
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1801:9
ERROR Class member `_StubToolNode._get_default_value_dict` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1865:9
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:1804:9
ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:2114:12
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:2053:12
ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:2114:12
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:2053:12
ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:2157:12
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:2096:12
ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
- --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:2157:12
+ --> tests/unit_tests/core/app/apps/advanced_chat/test_app_generator.py:2096:12
ERROR Argument `list[object]` is not assignable to parameter `value` with type `Sequence[VariableBase]` in function `models.workflow.Workflow.conversation_variables` [bad-argument-type]
--> tests/unit_tests/core/app/apps/advanced_chat/test_app_runner.py:62:39
ERROR Argument `object` is not assignable to parameter `variable` with type `VariableBase` in function `models.workflow.ConversationVariable.from_variable` [bad-argument-type]
@@ -3545,49 +3581,49 @@
ERROR Argument `_DummyWorkflowEntry` is not assignable to parameter `workflow_entry` with type `WorkflowEntry` in function `core.app.apps.workflow_app_runner.WorkflowBasedAppRunner.handle_event` [bad-argument-type]
--> tests/unit_tests/core/app/apps/test_workflow_app_runner.py:1073:29
ERROR Argument `tuple[Literal['layer']]` is not assignable to parameter `graph_engine_layers` with type `Sequence[Layer]` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:601:33
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:456:33
ERROR Argument `tuple[Literal['base-layer']]` is not assignable to parameter `graph_engine_layers` with type `Sequence[Layer]` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator._generate` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:688:37
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:543:37
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:697:31
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:552:31
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:699:16
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:554:16
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:700:16
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:555:16
ERROR Argument `RuntimeState | None` is not assignable to parameter `graph_runtime_state` with type `RuntimeState` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:844:35
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:699:35
ERROR No matching overload found for function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.generate` called with arguments: (app_model=App, workflow=Workflow, user=Account | EndUser, execution_identity=WorkflowExecutionIdentity, args=dict[str, dict[@_, @_]], invoke_from=Literal[InvokeFrom.SERVICE_API], streaming=Literal[False]) [no-matching-overload]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1119:31
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:974:31
ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.single_loop_generate` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1295:26
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1150:26
ERROR Object of class `object` has no attribute `extras` [missing-attribute]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1357:20
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1212:20
ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.single_loop_generate` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1415:22
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1270:22
ERROR Object of class `object` has no attribute `extras` [missing-attribute]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1420:20
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1275:20
ERROR Argument `SimpleNamespace` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.single_loop_generate` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1433:26
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1288:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator._handle_response` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1481:35
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1336:35
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator._handle_response` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1483:45
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1338:45
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `RuntimeState` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1626:37
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1481:37
ERROR Object of type `Generator[Mapping[str, Any] | str] | Mapping[str, Any]` has no attribute `ok` [missing-attribute]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1631:20
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1486:20
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `RuntimeState` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1684:37
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1539:37
ERROR Object of type `Generator[Mapping[str, Any] | str] | Mapping[str, Any]` has no attribute `ok` [missing-attribute]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1689:20
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1544:20
ERROR Argument `SimpleNamespace` is not assignable to parameter `flask_app` with type `Flask` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1746:27
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1601:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1748:31
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1603:31
ERROR Argument `SimpleNamespace` is not assignable to parameter `context` with type `Context` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1749:25
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1604:25
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `RuntimeState | None` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1753:37
+ --> tests/unit_tests/core/app/apps/workflow/test_app_generator.py:1608:37
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/app/apps/workflow/test_generate_response_converter.py:75:16
ERROR Cannot index into `str` [bad-index]
@@ -3722,6 +3758,8 @@
--> tests/unit_tests/core/app/layers/test_pause_state_persist_layer.py:142:12
ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `user_from` [missing-attribute]
--> tests/unit_tests/core/app/layers/test_pause_state_persist_layer.py:157:12
+ERROR Argument `list[FromClause]` is not assignable to parameter `tables` with type `Sequence[Table] | None` in function `sqlalchemy.sql.schema.MetaData.create_all` [bad-argument-type]
+ --> tests/unit_tests/core/app/layers/test_trigger_post_layer.py:33:66
ERROR Argument `Literal[core.app.entities.app_invoke_entities.InvokeFrom.WEB_APP]` is not assignable to parameter `invoke_from` with type `models.enums.InvokeFrom | SQLCoreOperations[models.enums.InvokeFrom | None] | None` in function `models.model.Message.__init__` [bad-argument-type]
--> tests/unit_tests/core/app/task_pipeline/test_based_generate_task_pipeline.py:40:21
ERROR `SimpleNamespace` is not assignable to upper bound `AppGenerateEntity` of type variable `AppGenerateEntityT` [bad-specialization]
@@ -3795,7 +3833,7 @@
ERROR Object of type `ToolInvokeMessage.BlobChunkMessage | ToolInvokeMessage.BlobMessage | ToolInvokeMessage.FileMessage | ToolInvokeMessage.JsonMessage | ToolInvokeMessage.LogMessage | ToolInvokeMessage.RetrieverResourceMessage | ToolInvokeMessage.TextMessage | ToolInvokeMessage.VariableMessage | None` has no attribute `json_object` [missing-attribute]
--> tests/unit_tests/core/datasource/entities/test_datasource_entities.py:407:12
ERROR Object of class `NoneType` has no attribute `split` [missing-attribute]
- --> tests/unit_tests/core/helper/test_trace_id_helper.py:379:21
+ --> tests/unit_tests/core/helper/test_trace_id_helper.py:361:21
ERROR Class member `_ModelInstance.invoke_llm` overrides parent class `ModelInstance` in an inconsistent manner [bad-override]
--> tests/unit_tests/core/llm_generator/output_parser/test_structured_output.py:68:9
ERROR Class member `_ModelInstance.invoke_llm` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
@@ -4083,7 +4121,7 @@
ERROR Argument `list[FromClause]` is not assignable to parameter `tables` with type `Sequence[Table] | None` in function `sqlalchemy.sql.schema.MetaData.create_all` [bad-argument-type]
--> tests/unit_tests/core/rag/extractor/test_excel_extractor.py:17:56
ERROR Argument `object | None` is not assignable to parameter `session` with type `Session | None` in function `core.rag.extractor.extract_processor.ExtractProcessor.extract` [bad-argument-type]
- --> tests/unit_tests/core/rag/extractor/test_extract_processor.py:251:85
+ --> tests/unit_tests/core/rag/extractor/test_extract_processor.py:222:85
ERROR Object of class `NoneType` has no attribute `strip` [missing-attribute]
--> tests/unit_tests/core/rag/extractor/test_markdown_extractor.py:30:16
ERROR Object of class `FunctionType` has no attribute `return_value` [missing-attribute]
@@ -4204,45 +4242,45 @@
ERROR `None` is not assignable to attribute `_creator_user_role` with type `CreatorUserRole` [bad-assignment]
--> tests/unit_tests/core/repositories/test_sqlalchemy_workflow_execution_repository.py:372:39
ERROR Argument `Literal[core.entities.provider_entities.ProviderQuotaType.TRIAL]` is not assignable to parameter `quota_type` with type `models.enums.ProviderQuotaType | SQLCoreOperations[models.enums.ProviderQuotaType | None] | None` in function `models.provider.Provider.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:124:20
+ --> tests/unit_tests/core/test_provider_manager.py:121:20
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:182:20
+ --> tests/unit_tests/core/test_provider_manager.py:179:20
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:195:24
+ --> tests/unit_tests/core/test_provider_manager.py:192:24
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:204:24
+ --> tests/unit_tests/core/test_provider_manager.py:201:24
ERROR Argument `list[ProviderModelSetting]` is not assignable to parameter `provider_model_settings` with type `list[_ProviderModelSettingCacheEntry] | None` in function `core.provider_manager.ProviderManager._to_model_settings` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:225:37
+ --> tests/unit_tests/core/test_provider_manager.py:222:37
ERROR Argument `list[LoadBalancingModelConfig]` is not assignable to parameter `load_balancing_model_configs` with type `list[_LoadBalancingModelConfigCacheEntry] | None` in function `core.provider_manager.ProviderManager._to_model_settings` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:226:42
+ --> tests/unit_tests/core/test_provider_manager.py:223:42
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:269:20
+ --> tests/unit_tests/core/test_provider_manager.py:266:20
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:278:24
+ --> tests/unit_tests/core/test_provider_manager.py:275:24
ERROR Argument `list[ProviderModelSetting]` is not assignable to parameter `provider_model_settings` with type `list[_ProviderModelSettingCacheEntry] | None` in function `core.provider_manager.ProviderManager._to_model_settings` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:292:67
+ --> tests/unit_tests/core/test_provider_manager.py:289:67
ERROR Argument `list[LoadBalancingModelConfig]` is not assignable to parameter `load_balancing_model_configs` with type `list[_LoadBalancingModelConfigCacheEntry] | None` in function `core.provider_manager.ProviderManager._to_model_settings` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:292:77
+ --> tests/unit_tests/core/test_provider_manager.py:289:77
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:482:20
+ --> tests/unit_tests/core/test_provider_manager.py:479:20
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:493:24
+ --> tests/unit_tests/core/test_provider_manager.py:490:24
ERROR Argument `list[ProviderModelSetting]` is not assignable to parameter `provider_model_settings` with type `list[_ProviderModelSettingCacheEntry] | None` in function `core.provider_manager.ProviderManager._to_model_settings` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:513:37
+ --> tests/unit_tests/core/test_provider_manager.py:510:37
ERROR Argument `list[LoadBalancingModelConfig]` is not assignable to parameter `load_balancing_model_configs` with type `list[_LoadBalancingModelConfigCacheEntry] | None` in function `core.provider_manager.ProviderManager._to_model_settings` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:514:42
+ --> tests/unit_tests/core/test_provider_manager.py:511:42
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.ProviderModelSetting.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:532:20
+ --> tests/unit_tests/core/test_provider_manager.py:529:20
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:543:24
+ --> tests/unit_tests/core/test_provider_manager.py:540:24
ERROR Argument `Literal['llm']` is not assignable to parameter `model_type` with type `ModelType | SQLCoreOperations[ModelType]` in function `models.provider.LoadBalancingModelConfig.__init__` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:552:24
+ --> tests/unit_tests/core/test_provider_manager.py:549:24
ERROR Argument `list[ProviderModelSetting]` is not assignable to parameter `provider_model_settings` with type `list[_ProviderModelSettingCacheEntry] | None` in function `core.provider_manager.ProviderManager._to_model_settings` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:573:37
+ --> tests/unit_tests/core/test_provider_manager.py:570:37
ERROR Argument `list[LoadBalancingModelConfig]` is not assignable to parameter `load_balancing_model_configs` with type `list[_LoadBalancingModelConfigCacheEntry] | None` in function `core.provider_manager.ProviderManager._to_model_settings` [bad-argument-type]
- --> tests/unit_tests/core/test_provider_manager.py:574:42
+ --> tests/unit_tests/core/test_provider_manager.py:571:42
WARN Identity comparison `False is True` is always False [unnecessary-comparison]
- --> tests/unit_tests/core/test_provider_manager.py:1449:30
+ --> tests/unit_tests/core/test_provider_manager.py:1376:30
ERROR Class member `DummyTool.get_runtime_parameters` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
--> tests/unit_tests/core/tools/__base/test_tool.py:71:9
ERROR Object of type `ToolInvokeMessage.BlobChunkMessage | ToolInvokeMessage.BlobMessage | ToolInvokeMessage.FileMessage | ToolInvokeMessage.JsonMessage | ToolInvokeMessage.LogMessage | ToolInvokeMessage.RetrieverResourceMessage | ToolInvokeMessage.TextMessage | ToolInvokeMessage.VariableMessage | None` has no attribute `text` [missing-attribute]
@@ -5857,6 +5895,50 @@
--> tests/unit_tests/services/tools/test_tools_transform_service.py:85:9
ERROR Object of class `Mapping` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/services/tools/test_tools_transform_service.py:819:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_schedule_service.py:549:61
+ERROR Argument `dict[str, str | dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_schedule_service.py:563:56
+ERROR Argument `dict[str, str | dict[str, str | dict[str, str]]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_schedule_service.py:580:61
+ERROR Argument `dict[str, str | dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_schedule_service.py:592:56
+ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:507:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:517:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:527:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:536:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:545:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:555:83
+ERROR Argument `dict[str, dict[str, list[dict[str, bool | str]] | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:807:92
+ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:834:87
+ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:854:87
+ERROR Argument `dict[str, dict[str, list[dict[str, bool | str]] | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:872:90
+ERROR Argument `dict[str, dict[str, list[dict[str, bool | str]] | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:891:95
+ERROR Argument `dict[str, dict[str, list[dict[str, bool | str]] | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:913:90
+ERROR Argument `dict[str, dict[str, list[dict[str, bool | str]] | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:932:90
+ERROR Argument `dict[str, dict[str, list[dict[str, bool | str]] | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:951:90
+ERROR Argument `dict[str, dict[str, list[dict[str, bool | str]] | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:969:95
+ERROR Argument `dict[str, str | dict[str, str]]` is not assignable to parameter `webhook_data` with type `RawWebhookDataDict` in function `services.trigger.webhook_service.WebhookService._validate_http_metadata` [bad-argument-type]
+ --> tests/unit_tests/services/trigger/test_webhook_service.py:1249:61
+ERROR Argument `dict[str, dict[str, int] | d\n\n... (truncated) ... |
Pyrefly Type Coverage
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #44655 +/- ##
=======================================
Coverage 90.09% 90.09%
=======================================
Files 6269 6269
Lines 392016 392018 +2
Branches 78451 78453 +2
=======================================
+ Hits 353181 353197 +16
+ Misses 32742 32727 -15
- Partials 6093 6094 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
c36b6fc to
ff9942c
Compare
|
Rebased onto current main and resolved the conflicts. One thing worth a look: #45904 landed in the meantime and handled a null variable value by setting the param to |
02cc9b8 to
f9e179d
Compare
…genius#44579) Signed-off-by: rome-xi <2685138823@qq.com>
f9e179d to
eeff2a0
Compare
|
Rebased onto current main. The only conflict was in |
|
Friendly ping — this was rebased onto current main on Nov 16 (the earlier approval was dismissed by the rebase). Happy to adjust if anything else is needed. Thanks! |
Important
Fixes #<issue number>.Summary
Fixes #44579
Close #45904
When an optional agent strategy parameter of type
variableis cleared in the workflow/chatflow editor, the editor retains the parameter with an empty selector ("",[], orNone). Previously,AgentRuntimeSupport.build_parametersunconditionally looked up the selector in the variable pool, raisingAgentVariableNotFoundError: Variable '' does not exist(or aTypeErroronNone). In addition,AgentNode._extract_variable_selector_to_variable_mappingemitted mappings for empty variable selectors.This change:
required=False) strategy parameters with empty selectors ("",[], orNone) inAgentRuntimeSupport.build_parameters, treating them as unset (matching the behavior when absent fromagent_parameters).AgentVariableNotFoundErrorwhen an empty selector is provided for a required parameter, as well as when a non-empty selector cannot be resolved.0, orFalse.AgentNode._extract_variable_selector_to_variable_mapping.Unit tests covering all scenarios pass with 16 passed tests in
api/tests/unit_tests/core/workflow/nodes/agent/test_runtime_support.pyandapi/tests/unit_tests/core/workflow/nodes/agent/test_agent_node.py.AI-assisted (Codex); I reviewed and ran the tests.
Screenshots
Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint gods