test: add type to test#35871
Merged
Merged
Conversation
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:02:31.557704998 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:02:19.806706508 +0000
@@ -921,21 +921,23 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:203:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1105,15 +1107,15 @@
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_message_service.py:122:81
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:122:20
+ --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:123:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:130:20
+ --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:131:20
ERROR Argument `Literal['local_file']` is not assignable to parameter `transfer_method` with type `FileTransferMethod | SQLCoreOperations[FileTransferMethod]` in function `models.model.MessageFile.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:260:29
+ --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:261:29
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.model.MessageFile.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:263:29
+ --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:264:29
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:272:29
+ --> tests/test_containers_integration_tests/services/test_messages_clean_service.py:273:29
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_metadata_service.py:56:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1191,25 +1193,61 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:89:38
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:107:23
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:108:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:142:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:157:20
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:197:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:198:74
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:204:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:210:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:267:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:270:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:271:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:342:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:413:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:448:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:454:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:500:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:501:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:521:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:542:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:545:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:573:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:73
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:576:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:596:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:597:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:601:67
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:604:67
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1267,13 +1305,19 @@
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_trigger_provider_service.py:555:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:92:38
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:93:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:112:20
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:115:23
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:216:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:217:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:222:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:223:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:271:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:272:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestWebConversationService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:377:75
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_webapp_auth_service.py:70:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +2041,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2155,7 +2199,7 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
@@ -2199,21 +2243,21 @@
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,13 +2265,13 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
ERROR `None` is not subscriptable [unsupported-operation]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:04:28.910331072 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:04:20.168234988 +0000
@@ -921,21 +921,23 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:203:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1193,61 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:89:38
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:107:23
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:108:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:142:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:157:20
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:197:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:198:74
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:204:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:210:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:267:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:270:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:271:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:342:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:413:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:448:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:454:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:500:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:501:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:521:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:542:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:545:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:573:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:73
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:576:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:596:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:597:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:601:67
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:604:67
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1267,13 +1305,19 @@
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_trigger_provider_service.py:555:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:92:38
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:93:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:112:20
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:115:23
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:216:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:217:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:222:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:223:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:271:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:272:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestWebConversationService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:377:75
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_webapp_auth_service.py:70:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +2041,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2155,7 +2199,7 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
@@ -2199,21 +2243,21 @@
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,13 +2265,13 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
ERROR `None` is not subscriptable [unsupported-operation]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:13:49.591588661 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:13:39.029563053 +0000
@@ -921,21 +921,23 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:203:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1193,61 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:89:38
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:107:23
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:108:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:142:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:157:20
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:197:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:198:74
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:204:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:210:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:267:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:270:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:271:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:342:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:413:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:448:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:454:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:500:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:501:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:521:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:542:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:545:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:573:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:73
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:576:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:596:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:597:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:601:67
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:604:67
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1267,13 +1305,19 @@
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_trigger_provider_service.py:555:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:92:38
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:93:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:112:20
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:115:23
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:216:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:217:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:222:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:223:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:271:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:272:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestWebConversationService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:377:75
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_webapp_auth_service.py:70:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +2041,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2193,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2265,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:15:15.252973087 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:15:03.673913111 +0000
@@ -921,21 +921,23 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:203:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1193,61 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:89:38
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:107:23
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:108:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:142:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:157:20
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:197:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:198:74
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:204:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:210:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:267:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:270:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:271:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:342:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:413:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:448:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:454:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:500:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:501:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:521:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:542:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:545:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:573:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:73
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:576:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:596:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:597:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:601:67
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:604:67
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1267,13 +1305,19 @@
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_trigger_provider_service.py:555:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:92:38
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:93:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:112:20
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:115:23
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:216:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:217:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:222:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:223:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:271:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:272:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestWebConversationService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:377:75
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_webapp_auth_service.py:70:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +2041,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2193,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2265,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:17:20.406042236 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:17:08.640033618 +0000
@@ -921,21 +921,23 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:203:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1193,61 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:89:38
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:107:23
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:108:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:142:20
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:157:20
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:197:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:198:74
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:204:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:210:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:267:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:270:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:271:74
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:342:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:413:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:448:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:454:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:500:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:501:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:521:73
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:542:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:545:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:573:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:73
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:576:84
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:596:75
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestSavedMessageService._create_test_message` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:597:73
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:601:67
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:604:67
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1267,13 +1305,19 @@
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_trigger_provider_service.py:555:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:92:38
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:93:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:112:20
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:115:23
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:216:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:217:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:222:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:223:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:271:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:272:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestWebConversationService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:377:75
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_webapp_auth_service.py:70:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +2041,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2193,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2265,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:18:09.975630894 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:17:55.746502803 +0000
@@ -921,21 +921,23 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:203:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1193,7 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:90:38
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1267,13 +1251,19 @@
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_trigger_provider_service.py:555:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:92:38
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:93:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:112:20
+ERROR Object of class `Flask` has no attribute `tenant_id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:115:23
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:216:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:217:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:222:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:223:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:271:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:272:29
+ERROR Argument `App` is not assignable to parameter `app` with type `Flask` in function `TestWebConversationService._create_test_end_user` [bad-argument-type]
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:377:75
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_webapp_auth_service.py:70:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +1987,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2139,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2211,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:19:39.142158435 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:19:27.022086388 +0000
@@ -921,21 +921,23 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:203:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1193,7 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:90:38
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1267,13 +1251,13 @@
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_trigger_provider_service.py:555:27
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:92:38
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:94:38
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:216:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:218:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:222:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:224:29
ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.PinnedConversation.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:271:29
+ --> tests/test_containers_integration_tests/services/test_web_conversation_service.py:273:29
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_webapp_auth_service.py:70:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +1981,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2133,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2205,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:21:47.301077065 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:21:39.484100329 +0000
@@ -921,21 +921,23 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
+ERROR Object of class `Flask` has no attribute `id` [missing-attribute]
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:203:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1193,7 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:88:38
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +1981,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2133,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2205,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:22:56.767966243 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:22:44.635912553 +0000
@@ -921,21 +921,21 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:185:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:444:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:513:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:731:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:758:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:784:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:829:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:955:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1191,7 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:88:38
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +1979,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2131,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2203,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 06:25:04.576937413 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 06:24:52.185881646 +0000
@@ -921,21 +921,21 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1191,7 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:88:38
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +1979,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2131,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2203,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR is a test-suite refactor that improves static typing support by adding type annotations (primarily for Flask app fixtures and model objects) across unit and container-based integration tests, aligning with issue #24650’s goal of better editor/type-checker feedback.
Changes:
- Add
Flasktype annotations to many pytestappfixtures/usages across controller and core tests. - Add model type annotations (e.g.,
App) in container integration tests for helper methods/fixtures. - Replace string literals for
created_by_rolein saved-message integration tests withCreatorUserRoleenum values.
Reviewed changes
Copilot reviewed 58 out of 58 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| api/tests/unit_tests/core/external_data_tool/test_external_data_fetch.py | Add Flask typing to the app fixture usage in external data fetch tests. |
| api/tests/unit_tests/controllers/service_api/test_wraps.py | Add Flask typing for app fixture across wraps/auth decorator tests. |
| api/tests/unit_tests/controllers/service_api/test_index.py | Import Flask and annotate app fixture parameters. |
| api/tests/unit_tests/controllers/service_api/dataset/test_metadata.py | Import Flask and annotate app fixture parameters in dataset metadata tests. |
| api/tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py | Import Flask and annotate app fixture parameters in segment tests. |
| api/tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py | Import Flask and annotate app fixture parameters in RAG pipeline workflow tests. |
| api/tests/unit_tests/controllers/service_api/app/test_workflow.py | Import Flask and annotate app parameters in workflow API tests. |
| api/tests/unit_tests/controllers/service_api/app/test_workflow_events.py | Import Flask and annotate app parameters in workflow events tests. |
| api/tests/unit_tests/controllers/service_api/app/test_message.py | Import Flask and annotate app parameters in message API tests. |
| api/tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py | Import Flask and annotate app parameters in HITL-related tests. |
| api/tests/unit_tests/controllers/service_api/app/test_file.py | Import Flask and annotate app parameters in file API tests. |
| api/tests/unit_tests/controllers/service_api/app/test_conversation.py | Import Flask and annotate app parameters in conversation API tests. |
| api/tests/unit_tests/controllers/service_api/app/test_completion.py | Import Flask and annotate app parameters in completion/chat API tests. |
| api/tests/unit_tests/controllers/service_api/app/test_audio.py | Import Flask and annotate app parameters in audio/text API tests. |
| api/tests/unit_tests/controllers/service_api/app/test_app.py | Annotate app parameters with Flask in app controller tests. |
| api/tests/unit_tests/controllers/console/workspace/test_workspace.py | Import Flask and annotate app parameters in workspace controller tests. |
| api/tests/unit_tests/controllers/console/workspace/test_plugin.py | Import Flask and annotate app parameters in plugin controller tests. |
| api/tests/unit_tests/controllers/console/workspace/test_models.py | Annotate app parameters with Flask in model-related workspace tests. |
| api/tests/unit_tests/controllers/console/workspace/test_model_providers.py | Import Flask and annotate app parameters in model provider tests. |
| api/tests/unit_tests/controllers/console/workspace/test_members.py | Import Flask and annotate app parameters in member controller tests. |
| api/tests/unit_tests/controllers/console/workspace/test_endpoint.py | Import Flask and annotate app parameters in endpoint controller tests. |
| api/tests/unit_tests/controllers/console/workspace/test_agent_providers.py | Import Flask and annotate app parameters in agent provider tests. |
| api/tests/unit_tests/controllers/console/workspace/test_accounts.py | Import Flask and annotate app parameters in accounts controller tests. |
| api/tests/unit_tests/controllers/console/test_workspace_members.py | Annotate app parameter with Flask in console workspace members tests. |
| api/tests/unit_tests/controllers/console/test_workspace_account.py | Annotate app parameter with Flask in console workspace account tests. |
| api/tests/unit_tests/controllers/console/test_files.py | Annotate app parameter with Flask in console file tests. |
| api/tests/unit_tests/controllers/console/tag/test_tags.py | Annotate app parameters with Flask in tag controller tests. |
| api/tests/unit_tests/controllers/console/explore/test_trial.py | Import Flask and annotate app parameters in trial explore tests. |
| api/tests/unit_tests/controllers/console/explore/test_saved_message.py | Import Flask and annotate app parameters in saved message explore tests. |
| api/tests/unit_tests/controllers/console/explore/test_recommended_app.py | Import Flask and annotate app parameters in recommended app explore tests. |
| api/tests/unit_tests/controllers/console/explore/test_message.py | Import Flask and annotate app parameters in explore message tests. |
| api/tests/unit_tests/controllers/console/explore/test_banner.py | Import Flask and annotate app parameters in banner explore tests. |
| api/tests/unit_tests/controllers/console/datasets/test_metadata.py | Annotate app parameter with Flask in dataset metadata console tests. |
| api/tests/unit_tests/controllers/console/datasets/test_external.py | Annotate app parameters with Flask in external dataset console tests. |
| api/tests/unit_tests/controllers/console/datasets/test_datasets.py | Import Flask and annotate app parameters across dataset console tests. |
| api/tests/unit_tests/controllers/console/datasets/test_datasets_segments.py | Import Flask and annotate app parameters in segment console tests. |
| api/tests/unit_tests/controllers/console/datasets/test_datasets_document.py | Import Flask and annotate app parameters in document console tests. |
| api/tests/unit_tests/controllers/console/datasets/rag_pipeline/test_datasource_content_preview.py | Import Flask and annotate app parameters in datasource preview tests. |
| api/tests/unit_tests/controllers/console/datasets/rag_pipeline/test_datasource_auth.py | Import Flask and annotate app parameters in datasource auth tests. |
| api/tests/unit_tests/controllers/console/auth/test_token_refresh.py | Annotate app parameters with Flask in token refresh tests. |
| api/tests/unit_tests/controllers/console/auth/test_login_logout.py | Annotate app parameters with Flask in login/logout tests. |
| api/tests/unit_tests/controllers/console/auth/test_email_verification.py | Annotate app parameters with Flask in email verification tests. |
| api/tests/unit_tests/controllers/console/auth/test_account_activation.py | Annotate app parameters with Flask in account activation tests. |
| api/tests/test_containers_integration_tests/services/test_web_conversation_service.py | Import App and annotate helper args with model App. |
| api/tests/test_containers_integration_tests/services/test_saved_message_service.py | Add model typings (App) and use CreatorUserRole enum when creating rows. |
| api/tests/test_containers_integration_tests/services/test_messages_clean_service.py | Annotate helper args with model App. |
| api/tests/test_containers_integration_tests/services/test_app_generate_service.py | Import App and annotate workflow helper arg with model App. |
| api/tests/test_containers_integration_tests/core/rag/pipeline/test_queue_integration.py | Introduce TenantAndAccount type alias and annotate fixtures/tests accordingly. |
| api/tests/test_containers_integration_tests/controllers/web/test_wraps.py | Annotate app parameters with Flask in web wraps integration tests. |
| api/tests/test_containers_integration_tests/controllers/service_api/dataset/test_dataset.py | Annotate app parameters with Flask in service API dataset integration tests. |
| api/tests/test_containers_integration_tests/controllers/console/workspace/test_trigger_providers.py | Annotate app parameters with Flask in trigger provider integration tests. |
| api/tests/test_containers_integration_tests/controllers/console/explore/test_conversation.py | Annotate app parameters with Flask in explore conversation integration tests. |
| api/tests/test_containers_integration_tests/controllers/console/datasets/test_data_source.py | Annotate app parameters with Flask in data source integration tests. |
| api/tests/test_containers_integration_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py | Annotate app parameters with Flask in RAG pipeline integration tests. |
| api/tests/test_containers_integration_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline_workflow.py | Annotate app parameters with Flask in published pipeline workflow test. |
| api/tests/test_containers_integration_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline_import.py | Annotate app parameters with Flask in pipeline import/export tests. |
| api/tests/test_containers_integration_tests/controllers/console/auth/test_password_reset.py | Annotate app parameters with Flask in password reset integration tests. |
| api/tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py | Annotate app parameters with Flask in OAuth integration tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-07 19:04:33.221920653 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-07 19:04:26.151914660 +0000
@@ -921,21 +921,21 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `dsl_dependencies` with type `list[PluginDependency]` in function `services.app_dsl_service.AppDslService.get_leaked_dependencies` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_app_dsl_service.py:1283:73
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:183:38
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:184:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:442:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:443:23
ERROR Argument `Literal['invalid_mode']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:511:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:512:20
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:729:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:730:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:756:64
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:757:64
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `args` with type `LoopNodeRunPayload` in function `services.app_generate_service.AppGenerateService.generate_single_loop` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:782:68
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:783:68
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:827:23
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:828:23
ERROR Argument `Literal['agent-chat']` is not assignable to parameter `value` with type `AppMode | SQLCoreOperations[AppMode]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_app_generate_service.py:953:20
+ --> tests/test_containers_integration_tests/services/test_app_generate_service.py:954:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
--> tests/test_containers_integration_tests/services/test_app_service.py:82:38
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -1191,25 +1191,7 @@
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/test_containers_integration_tests/services/test_recommended_app_service.py:265:20
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:87:38
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:202:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:208:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:275:29
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:281:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:452:29
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:543:84
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:574:84
-ERROR Argument `Literal['account']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:599:67
-ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
+ --> tests/test_containers_integration_tests/services/test_saved_message_service.py:88:38
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -1997,29 +1979,29 @@
ERROR Object of class `tuple` has no attribute `json` [missing-attribute]
--> tests/unit_tests/controllers/console/auth/test_token_refresh.py:192:16
ERROR Object of class `BadRequest` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1654:16
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1655:16
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:645:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:646:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:664:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:665:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:685:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:686:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:706:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:707:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:727:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:728:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:748:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:749:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:769:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:770:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:786:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:787:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1011:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1012:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1032:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1033:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
- --> tests/unit_tests/controllers/console/explore/test_trial.py:1053:9
+ --> tests/unit_tests/controllers/console/explore/test_trial.py:1054:9
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
--> tests/unit_tests/controllers/console/explore/test_wraps.py:42:18
ERROR Argument `Literal['app-id']` is not assignable to parameter `view` with type `(InstalledApp) -> str` in function `controllers.console.explore.wraps.decorator` [bad-argument-type]
@@ -2149,71 +2131,71 @@
ERROR Missing argument `payload` in function `protected_view` [missing-argument]
--> tests/unit_tests/controllers/inner_api/plugin/test_plugin_wraps.py:346:36
ERROR Cannot index into `Iterable[bytes]` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Cannot index into `Response` [bad-index]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/app/test_audio.py:189:16
+ --> tests/unit_tests/controllers/service_api/app/test_audio.py:190:16
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
+ --> tests/unit_tests/controllers/service_api/app/test_completion.py:157:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:86:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:87:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:91:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:92:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:455:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:456:59
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity | WorkflowAppGenerateEntity` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:97:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:98:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `WorkflowSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:424:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:425:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `ConversationSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:426:26
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `MessageSnapshot` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:427:21
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:428:21
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.advanced_chat.generate_task_pipeline.AdvancedChatAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:437:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:438:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:517:22
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:22
ERROR Argument `SimpleNamespace` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:518:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:519:18
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:520:18
ERROR Argument `(**kwargs: Unknown) -> None` is not assignable to parameter `draft_var_saver_factory` with type `DraftVariableSaverFactory` in function `core.app.apps.workflow.generate_task_pipeline.WorkflowAppGenerateTaskPipeline.__init__` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:521:37
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:522:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.app.apps.common.workflow_response_converter.WorkflowResponseConverter.workflow_pause_to_stream_response` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:611:33
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:612:33
ERROR Argument `() -> TestHitlServiceApi.test_snapshot_events_include_pause_payload_contract._SessionContext` is not assignable to parameter `session_maker` with type `sessionmaker[Session] | None` in function `services.workflow_event_snapshot_service._build_snapshot_events` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:684:27
+ --> tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py:685:27
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:95:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:100:63
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:101:63
ERROR Argument `str | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:138:20
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:139:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:170:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:171:31
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:183:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:184:31
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
+ --> tests/unit_tests/controllers/service_api/app/test_message.py:189:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:110:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:172:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:177:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:182:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:187:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
-ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
--> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:239:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:366:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:11:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -2221,31 +2203,31 @@
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:25:36
ERROR Missing argument `datasource_info_list` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `start_node_id` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `is_published` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Missing argument `response_mode` in function `services.rag_pipeline.entity.pipeline_service_api_entities.PipelineRunApiEntity.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:327:33
+ --> tests/unit_tests/controllers/service_api/dataset/rag_pipeline/test_rag_pipeline_workflow.py:328:33
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:51:20
-ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:74:16
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:52:20
ERROR `None` is not subscriptable [unsupported-operation]
--> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:75:16
+ERROR `None` is not subscriptable [unsupported-operation]
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:76:16
ERROR Missing argument `content` in function `controllers.common.controller_schemas.ChildChunkCreatePayload.__init__` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:119:36
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:120:36
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:159:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:160:33
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:164:33
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:165:33
ERROR Argument `list[Unknown] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:294:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:295:20
ERROR Missing argument `tenant_id` in function `services.dataset_service.SegmentService.get_segments` [missing-argument]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:303:54
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:304:54
ERROR Argument `list[str] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:596:20
+ --> tests/unit_tests/controllers/service_api/dataset/test_dataset_segment.py:597:20
ERROR Object of class `NoneType` has no attribute `name` [missing-attribute]
--> tests/unit_tests/controllers/service_api/dataset/test_document.py:237:16
ERROR Object of class `NoneType` has no attribute `indexing_status` [missing-attribute]
|
Contributor
Pyrefly Type Coverage
|
WH-2099
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
part of #24650
Screenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods