Repository navigation
Conversation
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-10-31 15:08:31.559433478 +0000
+++ /tmp/pyrefly_pr.txt 2026-10-31 15:08:08.087050626 +0000
@@ -111,45 +111,49 @@
ERROR Argument `list[Document | SimpleNamespace]` is not assignable to parameter `documents` with type `list[Document]` in function `dify_vdb_pgvector.pgvector.PGVector.add_texts` [bad-argument-type]
--> providers/vdb/vdb-pgvector/tests/unit_tests/src/dify_vdb_pgvector/test_pgvector.py:392:28
ERROR Object of class `ModuleType` has no attribute `QdrantClient` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:108:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:111:5
ERROR Object of class `ModuleType` has no attribute `FilterSelector` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:109:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:112:5
ERROR Object of class `ModuleType` has no attribute `HnswConfigDiff` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:110:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:113:5
ERROR Object of class `ModuleType` has no attribute `PayloadSchemaType` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:111:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:114:5
ERROR Object of class `ModuleType` has no attribute `TextIndexParams` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:112:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:115:5
ERROR Object of class `ModuleType` has no attribute `TextIndexType` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:113:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:116:5
ERROR Object of class `ModuleType` has no attribute `TokenizerType` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:114:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:117:5
ERROR Object of class `ModuleType` has no attribute `VectorParams` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:115:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:118:5
ERROR Object of class `ModuleType` has no attribute `Distance` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:116:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:119:5
ERROR Object of class `ModuleType` has no attribute `PointStruct` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:117:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:120:5
ERROR Object of class `ModuleType` has no attribute `Filter` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:118:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:121:5
ERROR Object of class `ModuleType` has no attribute `FieldCondition` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:119:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:122:5
ERROR Object of class `ModuleType` has no attribute `MatchValue` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:120:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:123:5
ERROR Object of class `ModuleType` has no attribute `MatchAny` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:121:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:124:5
ERROR Object of class `ModuleType` has no attribute `MatchText` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:122:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:125:5
ERROR Object of class `ModuleType` has no attribute `UnexpectedResponse` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:123:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:126:5
ERROR Object of class `ModuleType` has no attribute `models` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:125:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:128:5
ERROR Object of class `ModuleType` has no attribute `QdrantLocal` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:126:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:129:5
ERROR Object of class `ModuleType` has no attribute `qdrant_local` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:127:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:130:5
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:387:16
+ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:411:5
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
- --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:429:5
+ --> providers/vdb/vdb-qdrant/tests/unit_tests/src/dify_vdb_qdrant/test_qdrant_vector.py:451:5
ERROR Object of class `ModuleType` has no attribute `VECTOR` [missing-attribute]
--> providers/vdb/vdb-relyt/tests/unit_tests/src/dify_vdb_relyt/test_relyt_vector.py:24:5
ERROR Argument `Index | None` is not assignable to parameter `index` with type `Index` in function `tcvectordb.rpc.model.collection.RPCCollection.__init__` [bad-argument-type]
@@ -184,6 +188,8 @@
--> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_service.py:153:35
ERROR Argument `Any | None` is not assignable to parameter `cluster_response` with type `Mapping[str, Any]` in function `TidbService.extract_qdrant_endpoint` [bad-argument-type]
--> providers/vdb/vdb-tidb-on-qdrant/src/dify_vdb_tidb_on_qdrant/tidb_service.py:154:75
+ERROR Missing argument `self` in function `services.tools.workflow_tools_manage_service.WorkflowToolManageService.create_workflow_tool` [missing-argument]
+ --> services/app/console_gateway.py:472:55
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/e2e_tests/containers/controllers/console/app/test_chat_conversation_status_count_api.py:75:16
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]
@@ -311,15 +317,15 @@
ERROR Argument `str` 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/core/workflow/test_human_input_resume_node_execution.py:187:23
ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/helpers/execution_extra_content.py:48:14
+ --> tests/e2e_tests/containers/helpers/execution_extra_content.py:49:14
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/helpers/execution_extra_content.py:58:14
+ --> tests/e2e_tests/containers/helpers/execution_extra_content.py:59: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/helpers/execution_extra_content.py:59:19
+ --> tests/e2e_tests/containers/helpers/execution_extra_content.py:60:19
ERROR Argument `Literal['chat']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.Conversation.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/helpers/execution_extra_content.py:77:14
+ --> tests/e2e_tests/containers/helpers/execution_extra_content.py:78: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/e2e_tests/containers/helpers/execution_extra_content.py:82:16
+ --> tests/e2e_tests/containers/helpers/execution_extra_content.py:83:16
ERROR Returned type `int | str` is not assignable to declared return type `str` [bad-return]
--> tests/e2e_tests/containers/libs/broadcast_channel/redis/test_sharded_channel.py:367:16
ERROR Object of class `TypeEngine` has no attribute `length` [missing-attribute]
@@ -335,59 +341,59 @@
ERROR Argument `Literal['workflow-run']` is not assignable to parameter `triggered_from` with type `SQLCoreOperations[WorkflowNodeExecutionTriggeredFrom] | WorkflowNodeExecutionTriggeredFrom` in function `models.workflow.WorkflowNodeExecutionModel.__init__` [bad-argument-type]
--> tests/e2e_tests/containers/repositories/test_sqlalchemy_api_workflow_node_execution_repository.py:39:24
ERROR Generator function should return `Generator` [bad-return]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_api_workflow_run_repository.py:150:56
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_api_workflow_run_repository.py:143:56
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/repositories/test_sqlalchemy_execution_extra_content_repository.py:103:14
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:97: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/repositories/test_sqlalchemy_execution_extra_content_repository.py:104:19
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:98:19
ERROR Argument `Literal['chat']` is not assignable to parameter `mode` with type `AppMode | SQLCoreOperations[AppMode]` in function `models.model.Conversation.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:125:14
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:119: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/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:130:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:124:16
ERROR Object of class `HumanInputFormReference` has no attribute `submitted` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:348:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:342:16
ERROR Object of class `HumanInputFormReference` has no attribute `form_submission_data` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:350:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:344:16
ERROR Object of class `object` has no attribute `action_id` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:351:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:345:16
ERROR Object of class `object` has no attribute `action_text` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:352:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:346:16
ERROR Object of class `object` has no attribute `rendered_content` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:353:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:347:16
ERROR Object of class `object` has no attribute `node_id` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:354:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:348:16
ERROR Object of class `object` has no attribute `node_title` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:355:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:349:16
ERROR Object of class `HumanInputFormReference` has no attribute `form_submission_data` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:386:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:380:16
ERROR Object of class `object` has no attribute `submitted_data` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:387:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:381:16
ERROR Object of class `HumanInputFormReference` has no attribute `form_submission_data` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:474:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:468:16
ERROR Object of class `object` has no attribute `submitted_data` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:475:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:469:16
ERROR Object of class `object` has no attribute `rendered_content` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:476:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:470:16
ERROR Object of class `HumanInputFormReference` has no attribute `submitted` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:517:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:511:16
ERROR Object of class `HumanInputFormReference` has no attribute `form_definition` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:519:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:513:16
ERROR Object of class `object` has no attribute `form_id` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:521:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:515:16
ERROR Object of class `object` has no attribute `node_id` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:522:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:516:16
ERROR Object of class `object` has no attribute `node_title` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:523:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:517:16
ERROR Object of class `object` has no attribute `form_content` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:524:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:518:16
ERROR Object of class `object` has no attribute `display_in_ui` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:525:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:519:16
ERROR Object of class `object` has no attribute `form_token` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:526:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:520:16
ERROR Object of class `object` has no attribute `resolved_default_values` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:527:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:521:16
ERROR Object of class `object` has no attribute `expiration_time` [missing-attribute]
- --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:528:16
+ --> tests/e2e_tests/containers/repositories/test_sqlalchemy_execution_extra_content_repository.py:522:16
ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `str` in function `_create_node_execution_model` [bad-argument-type]
--> tests/e2e_tests/containers/repositories/test_sqlalchemy_workflow_node_execution_repository.py:184:23
ERROR Argument `str | None` is not assignable to parameter `tenant_id` with type `str` in function `_create_node_execution_model` [bad-argument-type]
@@ -801,9 +807,9 @@
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_file_service.py:76:20
ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
- --> tests/e2e_tests/containers/services/test_human_input_delivery_test.py:45:18
+ --> tests/e2e_tests/containers/services/test_human_input_delivery_test.py:40: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_human_input_delivery_test.py:54:19
+ --> tests/e2e_tests/containers/services/test_human_input_delivery_test.py:49:19
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_message_export_service.py:53: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]
@@ -1221,123 +1227,123 @@
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/tools/test_mcp_tools_manage_service.py:72:20
ERROR Argument `list[ToolParameter] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:752:20
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:754:20
ERROR Type `None` is not iterable [not-iterable]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:753:32
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:755:32
ERROR Type `None` is not iterable [not-iterable]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:754:32
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:756:32
ERROR Argument `list[ToolParameter] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:763:20
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:765:20
ERROR Type `None` is not iterable [not-iterable]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:764:34
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:766:34
ERROR Argument `list[ToolParameter] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:778:20
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:780:20
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:779:16
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:781:16
ERROR Argument `list[ToolParameter] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:787:20
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:789:20
ERROR Argument `list[ToolParameter] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:795:20
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:797:20
ERROR Type `None` is not iterable [not-iterable]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:804:33
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:806:33
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:805:16
+ --> tests/e2e_tests/containers/services/tools/test_tools_transform_service.py:807:16
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:109:38
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:111:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:113:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:115:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:188:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:190:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:208:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:210:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:223:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:225:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:257:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:259:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:273:27
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:275:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:290:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:292:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:323:27
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:325:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:340:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:342:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:369:27
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:371:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:395:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:397:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:425:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:427:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:442:27
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:444:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:459:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:461:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:494:27
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:496:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:510:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:512:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:546:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:548:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:559:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:561:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:592:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:594:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:606:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:608:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:624:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:626:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:625:30
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:627:30
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:671:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:673:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:683:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:685:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:704:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:706:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:705:30
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:707:30
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:715:16
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:717:16
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:743:27
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:745:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:760:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:762:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:790:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:792:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:804:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:806:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:813:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:815:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:814:30
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:816:30
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:827:16
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:829:16
ERROR Object of class `NoneType` has no attribute `updated_at` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:828:16
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:830:16
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:892:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:894:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:970:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:972:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1014:27
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1016:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1031:51
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1033:51
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1055:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1057:23
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1066:54
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1068:54
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1071:77
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1073:77
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1088:83
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1090:83
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1102:80
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1104:80
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1114:79
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1116:79
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1126:78
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1128:78
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1139:23
+ --> tests/e2e_tests/containers/services/tools/test_workflow_tools_manage_service.py:1141:23
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/workflow/test_workflow_converter.py:107: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]
@@ -1664,16 +1670,6 @@
--> tests/e2e_tests/containers/trigger/test_trigger_e2e.py:832:25
ERROR Argument `dict[str, str | dict[str, dict[Unknown, Unknown] | 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:859:21
-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]
- --> tests/e2e_tests/contracts/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:205:32
-ERROR Argument `core.workflow.nodes.human_input.entities.HumanInputNodeData` is not assignable to parameter `data` with type `graphon.nodes.human_input.entities.HumanInputNodeData` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
- --> tests/e2e_tests/contracts/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:209:14
-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]
- --> tests/e2e_tests/contracts/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:221:32
-ERROR Argument `core.workflow.nodes.human_input.entities.HumanInputNodeData` is not assignable to parameter `data` with type `graphon.nodes.human_input.entities.HumanInputNodeData` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
- --> tests/e2e_tests/contracts/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:225:14
ERROR Argument `SSRFProxy` is not assignable to parameter `http_client` with type `HttpClientProtocol` in function `graphon.nodes.http_request.executor.Executor.__init__` [bad-argument-type]
--> tests/e2e_tests/contracts/core/workflow/nodes/http_request/test_http_request_executor.py:64:21
ERROR Argument `SSRFProxy` is not assignable to parameter `http_client` with type `HttpClientProtocol` in function `graphon.nodes.http_request.executor.Executor.__init__` [bad-argument-type]
@@ -1767,13 +1763,13 @@
ERROR Argument `ModelInstance` is not assignable to parameter `model_instance` with type `LLMProtocol` in function `graphon.nodes.llm.llm_utils.fetch_prompt_messages` [bad-argument-type]
--> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_llm_utils.py:1070:28
ERROR Argument `Iterator[LLMResultChunk | LLMResultChunkWithStructuredOutput]` is not assignable to parameter `invoke_result` with type `Generator[LLMResultChunk | LLMStructuredOutput] | LLMResult` in function `graphon.nodes.llm.node.LLMNode.handle_invoke_result` [bad-argument-type]
- --> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_node.py:1630:31
+ --> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_node.py:1634:31
ERROR Argument `Generator[None, Unknown]` is not assignable to parameter `invoke_result` with type `Generator[LLMResultChunk | LLMStructuredOutput] | LLMResult` in function `graphon.nodes.llm.node.LLMNode.handle_invoke_result` [bad-argument-type]
- --> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_node.py:1671:31
+ --> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_node.py:1675:31
ERROR Missing argument `run_context` in function `core.app.llm.model_access.DifyCredentialsProvider.__init__` [missing-argument]
- --> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_node.py:1863:32
+ --> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_node.py:1867:32
ERROR Missing argument `run_context` in function `core.app.llm.model_access.DifyModelFactory.__init__` [missing-argument]
- --> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_node.py:1866:25
+ --> tests/e2e_tests/contracts/core/workflow/nodes/llm/test_node.py:1870:25
ERROR Object of class `NoneType` has no attribute `assert_called_once_with` [missing-attribute]
--> tests/e2e_tests/contracts/core/workflow/nodes/test_document_extractor_node.py:217:9
ERROR Object of class `NoneType` has no attribute `assert_called_once_with` [missing-attribute]
@@ -1797,13 +1793,13 @@
ERROR Argument `Iterator[ToolRuntimeMessage]` is not assignable to parameter `messages` with type `Generator[ToolRuntimeMessage]` in function `graphon.nodes.tool.tool_node.ToolNode._transform_message` [bad-argument-type]
--> tests/e2e_tests/contracts/core/workflow/nodes/tool/test_tool_node.py:141:18
ERROR `-` is not supported between `None` and `datetime` [unsupported-operation]
- --> tests/e2e_tests/contracts/libs/_human_input/test_models.py:64:21
+ --> tests/e2e_tests/contracts/libs/_human_input/test_models.py:59:21
ERROR `-` is not supported between `None` and `datetime` [unsupported-operation]
- --> tests/e2e_tests/contracts/libs/_human_input/test_models.py:75:21
+ --> tests/e2e_tests/contracts/libs/_human_input/test_models.py:70:21
ERROR `<=` is not supported between `datetime` and `None` [unsupported-operation]
- --> tests/e2e_tests/contracts/libs/_human_input/test_models.py:120:16
+ --> tests/e2e_tests/contracts/libs/_human_input/test_models.py:115:16
ERROR `<=` is not supported between `None` and `datetime` [unsupported-operation]
- --> tests/e2e_tests/contracts/libs/_human_input/test_models.py:120:16
+ --> tests/e2e_tests/contracts/libs/_human_input/test_models.py:115:16
ERROR `*` is not supported between `float` and `str` [unsupported-operation]
--> tests/e2e_tests/knowledge_fs_vector/test_backends.py:54:37
ERROR `*` is not supported between `str` and `float` [unsupported-operation]
@@ -2110,12 +2106,6 @@
--> tests/helpers/workflow/mock_nodes.py:755:52
ERROR Cannot set item in `dict[str, str]` [unsupported-operation]
--> tests/helpers/workflow/mock_nodes.py:757:52
-ERROR Argument `Sequence[type[EngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[EngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
- --> tests/helpers/workflow/table_runner.py:336:21
-ERROR `graph` is uninitialized [unbound-name]
- --> tests/helpers/workflow/table_runner.py:389:23
-ERROR `graph_runtime_state` is uninitialized [unbound-name]
- --> 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 `object` has no attribute `package` [missing-attribute]
@@ -2169,21 +2159,21 @@
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]
- --> tests/unit_tests/controllers/console/app/test_app.py:665:55
+ --> tests/unit_tests/controllers/console/app/test_app.py:661:55
ERROR Object of class `App` has no attribute `create_user_name` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app.py:759:5
+ --> tests/unit_tests/controllers/console/app/test_app.py:755:5
ERROR Object of class `App` has no attribute `permission_keys` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app.py:761:5
+ --> tests/unit_tests/controllers/console/app/test_app.py:757:5
ERROR Object of class `App` has no attribute `permission_keys` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app.py:959:82
+ --> tests/unit_tests/controllers/console/app/test_app.py:955:82
ERROR Object of class `App` has no attribute `permission_keys` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app.py:990:9
+ --> tests/unit_tests/controllers/console/app/test_app.py:986:9
ERROR Object of class `App` has no attribute `permission_keys` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app.py:1003:37
+ --> tests/unit_tests/controllers/console/app/test_app.py:999:37
ERROR Object of class `App` has no attribute `permission_keys` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app.py:1075:9
+ --> tests/unit_tests/controllers/console/app/test_app.py:1071: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
+ --> tests/unit_tests/controllers/console/app/test_app.py:1109: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]
@@ -2303,11 +2293,15 @@
ERROR Argument `(ParamSpec(Unknown)) -> Response | Unknown` is not assignable to parameter `func` with type `(...) -> Any` in function `inspect.unwrap` [bad-argument-type]
--> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_datasource_auth.py:828:33
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
+ --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:99:9
ERROR Argument `(ParamSpec(Unknown)) -> Response | Unknown` is not assignable to parameter `func` with type `(...) -> Any` in function `inspect.unwrap` [bad-argument-type]
- --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:303:25
+ --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:319:25
ERROR Argument `(ParamSpec(Unknown)) -> Response | Unknown` is not assignable to parameter `func` with type `(...) -> Any` in function `inspect.unwrap` [bad-argument-type]
- --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:334:25
+ --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:350:25
+ERROR Object of class `object` has no attribute `id` [missing-attribute]
+ --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:515:12
+ERROR Object of class `object` has no attribute `kind` [missing-attribute]
+ --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:516:12
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]
@@ -2401,13 +2395,13 @@
ERROR Generator function should return `Generator` [bad-return]
--> tests/unit_tests/controllers/console/tag/test_tags.py:66:23
ERROR Argument `SimpleNamespace` is not assignable to parameter `form` with type `Form` in function `controllers.console.human_input_form._jsonify_form_definition` [bad-argument-type]
- --> tests/unit_tests/controllers/console/test_human_input_form.py:94:41
+ --> tests/unit_tests/controllers/console/test_human_input_form.py:93:41
ERROR Argument `SimpleNamespace` is not assignable to parameter `form` with type `Form` in function `controllers.console.human_input_form.ConsoleHumanInputFormApi._ensure_console_access` [bad-argument-type]
- --> tests/unit_tests/controllers/console/test_human_input_form.py:105:57
+ --> tests/unit_tests/controllers/console/test_human_input_form.py:104:57
ERROR Argument `(ParamSpec(Unknown)) -> Response | Unknown` is not assignable to parameter `func` with type `(...) -> Any` in function `inspect.unwrap` [bad-argument-type]
- --> tests/unit_tests/controllers/console/test_human_input_form.py:131:22
+ --> tests/unit_tests/controllers/console/test_human_input_form.py:130:22
ERROR Argument `(ParamSpec(Unknown)) -> Response | Unknown` is not assignable to parameter `func` with type `(...) -> Any` in function `inspect.unwrap` [bad-argument-type]
- --> tests/unit_tests/controllers/console/test_human_input_form.py:152:22
+ --> tests/unit_tests/controllers/console/test_human_input_form.py:151:22
ERROR Type `Response` is not iterable [not-iterable]
--> tests/unit_tests/controllers/console/test_wraps.py:306:17
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
@@ -2859,87 +2853,63 @@
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:286:25
ERROR `None` is not assignable to attribute `agent_callback` with type `DifyAgentCallbackHandler` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:121:29
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:124:5
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:129:9
-ERROR Missing required key `action` for TypedDict `ActionDict` [bad-typed-dict-key]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:157:44
-ERROR Missing required key `action_input` for TypedDict `ActionDict` [bad-typed-dict-key]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:157:44
-ERROR Key `invalid` is not defined in TypedDict `ActionDict` [bad-typed-dict-key]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:157:45
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:124:29
ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:211:55
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:127:5
ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:224:55
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:248:35
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:133:9
+ERROR Object of class `AgentToolInvoker` has no attribute `return_value` [missing-attribute]
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:211:9
ERROR Object of class `FunctionType` has no attribute `call_args` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:250:33
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:239:33
ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:251:61
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:240:61
+ERROR Object of class `AgentToolInvoker` has no attribute `return_value` [missing-attribute]
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:253:9
ERROR `None` is not assignable to attribute `agent_callback` with type `DifyAgentCallbackHandler` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:269:33
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:272:29
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:255:33
ERROR Object of class `NoneType` has no attribute `max_iteration` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:275:9
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:261:9
+ERROR Object of class `AgentToolInvoker` has no attribute `return_value` [missing-attribute]
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:272:9
ERROR `None` is not assignable to attribute `agent_callback` with type `DifyAgentCallbackHandler` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:291:33
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:294:29
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:305:35
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:274:33
ERROR Object of class `NoneType` has no attribute `max_iteration` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:309:9
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:321:29
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:292:9
ERROR Object of class `NoneType` has no attribute `max_iteration` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:326:9
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:309:9
ERROR `Literal[1]` is not assignable to attribute `prompt_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:332:32
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:315:32
ERROR `Literal[1]` is not assignable to attribute `completion_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:333:36
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:316:36
ERROR `Literal[2]` is not assignable to attribute `total_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:334:31
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:317:31
ERROR `Literal[1]` is not assignable to attribute `prompt_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:340:32
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:323:32
ERROR `Literal[1]` is not assignable to attribute `completion_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:341:36
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:324:36
ERROR `Literal[2]` is not assignable to attribute `total_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:342:31
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:325:31
+ERROR Object of class `AgentToolInvoker` has no attribute `return_value` [missing-attribute]
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:344:9
ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:370:35
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:382:19
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:362:19
ERROR Object of class `FunctionType` has no attribute `return_value` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:402:9
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:382:9
ERROR Object of class `FunctionType` has no attribute `call_args` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:410:16
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:428:25
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:390:16
+ERROR Object of class `AgentToolInvoker` has no attribute `return_value` [missing-attribute]
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:423:9
ERROR Object of class `NoneType` has no attribute `max_iteration` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:448:9
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:425:9
ERROR `None` is not assignable to attribute `agent_callback` with type `DifyAgentCallbackHandler` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:456:33
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:458:25
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:433:33
ERROR `list[str]` is not assignable to attribute `_agent_scratchpad` with type `list[AgentScratchpadUnit]` [bad-assignment]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:488:36
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:510:55
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:465:36
+ERROR Object of class `AgentToolInvoker` has no attribute `return_value` [missing-attribute]
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:481:9
ERROR Object of class `FunctionType` has no attribute `assert_called` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:514:9
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:580:35
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:594:35
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:608:35
-ERROR Object of class `DummyRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_cot_agent_runner.py:623:35
+ --> tests/unit_tests/core/agent/test_cot_agent_runner.py:488:9
ERROR `list[DummyTool]` is not assignable to attribute `_prompt_messages_tools` with type `Sequence[PromptMessageTool]` [bad-assignment]
--> tests/unit_tests/core/agent/test_cot_chat_agent_runner.py:49:37
ERROR `DummyGenerateEntity` is not assignable to attribute `application_generate_entity` with type `AgentChatAppGenerateEntity` [bad-assignment]
@@ -2956,82 +2926,8 @@
--> tests/unit_tests/core/agent/test_cot_completion_agent_runner.py:179:16
ERROR `in` is not supported between `Literal['Question: What is Python?']` and `None` [not-iterable]
--> tests/unit_tests/core/agent/test_cot_completion_agent_runner.py:180:16
-ERROR `Literal[0]` is not assignable to attribute `prompt_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:51:26
-ERROR `Literal[0]` is not assignable to attribute `completion_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:52:30
-ERROR `Literal[0]` is not assignable to attribute `total_price` with type `Decimal` [bad-assignment]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:53:25
-ERROR Missing argument `session` in function `core.agent.base_agent_runner.BaseAgentRunner.__init__` [missing-argument]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:194:37
-ERROR Object of class `FunctionCallAgentRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:227:5
-ERROR Object of class `FunctionCallAgentRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:238:9
-ERROR Argument `None` is not assignable to parameter `query` with type `str` in function `core.agent.fc_agent_runner.FunctionCallAgentRunner._organize_user_query` [bad-argument-type]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:339:46
ERROR `list[str]` is not assignable to attribute `files` with type `Sequence[File] | list[File]` [bad-assignment]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:351:24
-ERROR Object of class `FunctionCallAgentRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:407:58
-ERROR Object of class `FunctionCallAgentRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:455:19
-ERROR Object of class `FunctionType` has no attribute `return_value` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:512:9
-ERROR Object of class `FunctionCallAgentRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:514:35
-ERROR Object of class `FunctionType` has no attribute `call_args` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:516:33
-ERROR Object of class `FunctionType` has no attribute `call_args` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:517:33
-ERROR Object of class `FunctionType` has no attribute `call_args` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:518:16
-ERROR Object of class `FunctionType` has no attribute `assert_called` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:523:9
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:525:23
-ERROR Object of class `FunctionCallAgentRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:531:19
-ERROR Argument `list[TextPromptMessageContent]` is not assignable to parameter `content` with type `str | None` in function `DummyMessage.__init__` [bad-argument-type]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:548:57
-ERROR Object of class `FunctionType` has no attribute `return_value` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:554:9
-ERROR Argument `list[TextPromptMessageContent]` is not assignable to parameter `content` with type `str | None` in function `DummyMessage.__init__` [bad-argument-type]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:570:57
-ERROR Object of class `FunctionType` has no attribute `side_effect` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:578:9
-ERROR Object of class `FunctionCallAgentRunner` has no attribute `session` [missing-attribute]
- --> tests/unit_tests/core/agent/test_fc_agent_runner.py:580:35
-ERROR Argument \n\n... (truncated) ... |
Contributor
Pyrefly Type Coverage
|
41tair
force-pushed
the
refactor/api-76-10-6
branch
from
October 9, 2026 05:04
5e33c18 to
6585170
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## refactor/api-76-10-5 #43690 +/- ##
========================================================
- Coverage 40.02% 40.02% -0.01%
========================================================
Files 6275 6275
Lines 389342 389342
Branches 81232 81232
========================================================
- Hits 155853 155850 -3
- Misses 229550 229553 +3
Partials 3939 3939
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:
|
# Conflicts: # api/tests/unit_tests/core/workflow/nodes/agent_v2/test_validators.py # api/tests/unit_tests/core/workflow/test_human_input_adapter.py # packages/contracts/generated/api/console/apps/errors.gen.ts # packages/contracts/generated/api/console/errors.gen.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
part of #39993
Migrate graph and node tests to injected runtime adapters.
Screenshots
Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint godsFrom Codex