test: add unit tests for services and tasks part-4#33223
test: add unit tests for services and tasks part-4#33223poojanInfocusp wants to merge 26 commits intolanggenius:mainfrom
Conversation
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-10 13:05:12.505117584 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-10 13:05:03.756099642 +0000
@@ -3721,32 +3721,6 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
|
Warning Gemini is experiencing higher than usual traffic and was unable to create the summary. Please try again in a few hours by commenting |
|
/gemini summary |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
@gemini-code-assist, please review this PR. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-11 07:49:31.034999290 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-11 07:49:22.267884982 +0000
@@ -3799,32 +3799,6 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-11 08:24:03.073734921 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-11 08:23:54.040676242 +0000
@@ -3799,32 +3799,6 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-12 06:30:10.006322605 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-12 06:30:01.070254069 +0000
@@ -5300,24 +5300,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
+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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272: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/test_webhook_service.py:194:79
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]
@@ -5336,18 +5326,30 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535:83
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:945:56
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:954:61
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:967:26
+ERROR Argument `Literal['text/plain']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:968:26
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:981:64
+ERROR Argument `Literal['multipart/form-data']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:981:78
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:993:56
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:1006:60
+ERROR Argument `dict[str, str]` is not assignable to parameter `node_data` with type `WebhookData` in function `services.trigger.webhook_service.WebhookService._validate_http_metadata` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:1015:67
+ERROR Argument `dict[str, dict[str, int | object]]` 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/test_webhook_service.py:1284:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
|
Hi! I'm I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-12 06:48:06.225463820 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-12 06:47:57.417456629 +0000
@@ -5300,24 +5300,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
+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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272: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/test_webhook_service.py:194:79
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]
@@ -5336,18 +5326,30 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535:83
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:945:56
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:954:61
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:967:26
+ERROR Argument `Literal['text/plain']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:968:26
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:981:64
+ERROR Argument `Literal['multipart/form-data']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:981:78
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:993:56
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:1006:60
+ERROR Argument `dict[str, str]` is not assignable to parameter `node_data` with type `WebhookData` in function `services.trigger.webhook_service.WebhookService._validate_http_metadata` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:1015:67
+ERROR Argument `dict[str, dict[str, int | object]]` 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/test_webhook_service.py:1284:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-12 08:26:37.717694955 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-12 08:26:28.463728036 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,30 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535:83
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:945:56
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:954:61
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:967:26
+ERROR Argument `Literal['text/plain']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:968:26
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:981:64
+ERROR Argument `Literal['multipart/form-data']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:981:78
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:993:56
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:1006:60
+ERROR Argument `dict[str, str]` is not assignable to parameter `node_data` with type `WebhookData` in function `services.trigger.webhook_service.WebhookService._validate_http_metadata` [bad-argument-type]
+ --> tests/unit_tests/services/test_webhook_service.py:1015:67
+ERROR Argument `dict[str, dict[str, int | object]]` 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/test_webhook_service.py:1284:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-12 10:20:03.545196390 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-12 10:19:53.551213138 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-12 10:23:53.879017141 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-12 10:23:45.081025219 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
|
Hi @QuantumGhost, I have fixed the tests which were failing in the CI. Can you please review the change. |
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 07:19:21.627355610 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 07:19:12.905265008 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 07:48:55.912380766 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 07:48:46.872369759 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 08:38:53.539327060 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 08:38:44.470296420 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 08:52:44.781411432 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 08:52:35.174464003 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 09:10:23.670511628 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 09:10:13.449506709 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 09:32:25.188909832 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 09:32:15.363818573 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 09:45:34.806487718 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 09:45:24.518439450 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 10:05:32.243246832 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 10:05:22.802137719 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 10:26:07.627732409 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 10:25:57.463727468 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 10:26:34.104080274 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 10:26:24.645056885 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 11:06:18.518533169 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 11:06:08.921483442 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 11:16:45.912741182 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 11:16:36.535755561 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-13 11:19:20.617046182 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-13 11:19:11.556967283 +0000
@@ -5520,18 +5520,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5570,18 +5560,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-14 12:13:06.086261001 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-14 12:12:57.294241524 +0000
@@ -5816,18 +5816,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5842,12 +5838,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5866,18 +5856,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-14 12:13:36.396405733 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-14 12:13:27.919465711 +0000
@@ -5816,18 +5816,14 @@
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/services/test_recommended_app_service.py:440: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/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | 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/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, 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/test_schedule_service.py:272:56
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:89:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5842,12 +5838,6 @@
--> tests/unit_tests/services/test_summary_index_service.py:1258:39
ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
--> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
- --> tests/unit_tests/services/test_variable_truncator.py:220:50
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/test_webhook_service.py:194:79
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]
@@ -5866,18 +5856,12 @@
--> tests/unit_tests/services/test_webhook_service.py:515:83
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/test_webhook_service.py:535: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/test_webhook_service.py:1285:61
ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
--> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
- --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
--> tests/unit_tests/services/vector_service.py:125:49
ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]
|
Important
Fixes #<issue number>.Test Coverage Report
Coverage Summary
services/model_provider_service.pyservices/recommended_app_service.pyservices/tools/tools_transform_service.pyservices/tools/workflow_tools_manage_service.pyservices/trigger/schedule_service.pyservices/trigger/webhook_service.pyservices/variable_truncator.pyservices/workflow/workflow_converter.pyservices/workflow_event_snapshot_service.pyservices/workflow_run_service.pytasks/document_indexing_task.pyapi/core/tools/utils/configuration.pyScreenshots
Checklist
make lintandmake type-check(backend) andcd web && npx lint-staged(frontend) to appease the lint godsFixes test: improve test coverage for services module #32582