fix: include signed content in hit testing results#37771
Open
vicksiyi wants to merge 2 commits into
Open
Conversation
6 tasks
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-06-23 14:38:22.861033278 +0000
+++ /tmp/pyrefly_pr.txt 2026-06-23 14:38:08.856885921 +0000
@@ -2049,57 +2049,31 @@
ERROR No attribute `MethodView` in module `builtins` [missing-attribute]
--> tests/unit_tests/controllers/common/test_fields.py:9:5
ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `controllers.console.app.completion._create_chat_message` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1223:74
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1104:74
ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.completion._create_chat_message` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1223:98
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1104:98
ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `controllers.console.app.completion._create_chat_message` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1260:30
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1154:30
ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.completion._create_chat_message` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1261:27
-ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `controllers.console.app.completion._resolve_current_user_agent_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1288:22
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.completion._resolve_current_user_agent_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1289:19
-ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `controllers.console.app.completion._resolve_current_user_agent_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1294:22
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.completion._resolve_current_user_agent_debug_conversation_id` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1295:19
-ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `controllers.console.app.completion._create_chat_message` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1346:30
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.completion._create_chat_message` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1347:27
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1155:27
ERROR Object of class `object` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1429:50
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1235:50
ERROR Object of class `object` has no attribute `limit` [missing-attribute]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1430:30
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1236:30
ERROR Object of class `object` has no attribute `has_more` [missing-attribute]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1431:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.message._list_chat_messages` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1443:67
-ERROR Object of class `object` has no attribute `data` [missing-attribute]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1469:50
-ERROR Object of class `object` has no attribute `limit` [missing-attribute]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1470:30
-ERROR Object of class `object` has no attribute `has_more` [missing-attribute]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1471:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.message._list_chat_messages` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1485:67
-ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account | None` in function `controllers.console.app.message._list_chat_messages` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1485:91
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1237:33
ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.message._list_chat_messages` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1505:27
-ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account | None` in function `controllers.console.app.message._list_chat_messages` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1506:30
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1249:67
ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `controllers.console.app.message._update_message_feedback` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1521:30
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1265:30
ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.message._update_message_feedback` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1522:27
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1266:27
ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `controllers.console.app.message._get_message_suggested_questions` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1558:26
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1302:26
ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `controllers.console.app.message._get_message_suggested_questions` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1559:23
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1303:23
ERROR Argument `Literal['00000000-0000-0000-0000-000000000002']` is not assignable to parameter `message_id` with type `UUID` in function `controllers.console.app.message._get_message_suggested_questions` [bad-argument-type]
- --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1560:24
+ --> tests/unit_tests/controllers/console/agent/test_agent_controllers.py:1304:24
ERROR Object of class `int` has no attribute `lower` [missing-attribute]
--> tests/unit_tests/controllers/console/app/test_annotation_security.py:221:38
ERROR Object of class `int` has no attribute `lower` [missing-attribute]
@@ -2287,11 +2261,7 @@
ERROR Argument `list[str]` is not assignable to parameter `fields` with type `set[str] | None` in function `controllers.openapi.apps.build_app_describe_response` [bad-argument-type]
--> tests/unit_tests/controllers/openapi/test_app_describe_builder.py:72:48
ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `controllers.openapi.apps.parameters_payload` [bad-argument-type]
- --> tests/unit_tests/controllers/openapi/test_app_payloads.py:39:28
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `controllers.openapi.apps._is_listable` [bad-argument-type]
- --> tests/unit_tests/controllers/openapi/test_app_payloads.py:65:25
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `controllers.openapi.apps._is_listable` [bad-argument-type]
- --> tests/unit_tests/controllers/openapi/test_app_payloads.py:70:25
+ --> tests/unit_tests/controllers/openapi/test_app_payloads.py:37:28
ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `controllers.openapi.app_run._run_chat` [bad-argument-type]
--> tests/unit_tests/controllers/openapi/test_app_run_streaming.py:50:13
ERROR Object of class `UnprocessableEntity` has no attribute `data` [missing-attribute]
@@ -3264,13 +3234,6 @@
ERROR Object of class `Mapping` has no attribute `model_dump`
ERROR Object of class `LayerConfig` has no attribute `drive_ref`
ERROR Object of class `LayerConfig` has no attribute `skills`
-ERROR Object of class `LayerConfig` has no attribute `mentioned_skill_keys`
-ERROR Object of class `LayerConfig` has no attribute `drive_ref`
-ERROR Object of class `LayerConfig` has no attribute `skills`
-ERROR Object of class `LayerConfig` has no attribute `prefix`
-ERROR Object of class `LayerConfig` has no attribute `prefix`
-ERROR Object of class `LayerConfig` has no attribute `prefix`
-ERROR Object of class `LayerConfig` has no attribute `prefix`
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
--> tests/unit_tests/core/app/apps/agent_app/test_session_store.py:58:5
ERROR Object of class `FromClause` has no attribute `drop` [missing-attribute]
@@ -3278,11 +3241,11 @@
ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `override_config_dict` with type `AppModelConfigDict | None` in function `core.app.apps.agent_chat.app_config_manager.AgentChatAppConfigManager.get_app_config` [bad-argument-type]
--> tests/unit_tests/core/app/apps/agent_chat/test_agent_chat_app_config_manager.py:41:34
ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
- --> tests/unit_tests/core/app/apps/agent_chat/test_agent_chat_app_runner.py:59:9
+ --> tests/unit_tests/core/app/apps/agent_chat/test_agent_chat_app_runner.py:47:9
ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
- --> tests/unit_tests/core/app/apps/agent_chat/test_agent_chat_app_runner.py:88:9
+ --> tests/unit_tests/core/app/apps/agent_chat/test_agent_chat_app_runner.py:76:9
ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
- --> tests/unit_tests/core/app/apps/agent_chat/test_agent_chat_app_runner.py:207:9
+ --> tests/unit_tests/core/app/apps/agent_chat/test_agent_chat_app_runner.py:198:9
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/app/apps/agent_chat/test_agent_chat_generate_response_converter.py:158:16
ERROR Cannot index into `str` [bad-index]
@@ -3306,61 +3269,53 @@
ERROR Argument `dict[str, str]` is not assignable to parameter `override_config_dict` with type `AppModelConfigDict | None` in function `core.app.apps.chat.app_config_manager.ChatAppConfigManager.get_app_config` [bad-argument-type]
--> tests/unit_tests/core/app/apps/chat/test_app_config_manager.py:37:38
ERROR No matching overload found for function `core.app.apps.chat.app_generator.ChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, user=SimpleNamespace, args=dict[str, dict[@_, @_]], invoke_from=Literal[InvokeFrom.SERVICE_API], streaming=Literal[False]) [no-matching-overload]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:50:31
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:36:31
ERROR No matching overload found for function `core.app.apps.chat.app_generator.ChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, user=SimpleNamespace, args=dict[str, dict[@_, @_] | int], invoke_from=Literal[InvokeFrom.SERVICE_API], streaming=Literal[False]) [no-matching-overload]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:61:31
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:47:31
ERROR No matching overload found for function `core.app.apps.chat.app_generator.ChatAppGenerator.generate` called with arguments: (SimpleNamespace, SimpleNamespace, dict[str, dict[Unknown, Unknown] | str | dict[str, str]], Literal[InvokeFrom.DEBUGGER], streaming=Literal[False]) [no-matching-overload]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:108:40
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:94:40
ERROR No matching overload found for function `core.app.apps.chat.app_generator.ChatAppGenerator.generate` called with arguments: (app_model=SimpleNamespace, user=SimpleNamespace, args=dict[str, dict[@_, @_] | str | dict[str, str]], invoke_from=Literal[InvokeFrom.SERVICE_API], streaming=Literal[False]) [no-matching-overload]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:121:35
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:107:35
ERROR Argument `DummyGenerateEntity` is not assignable to parameter `application_generate_entity` with type `ChatAppGenerateEntity` in function `core.app.apps.chat.app_generator.ChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:142:45
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:128:45
ERROR Argument `DummyQueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.chat.app_generator.ChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:143:31
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:129:31
ERROR Argument `DummyGenerateEntity` is not assignable to parameter `application_generate_entity` with type `ChatAppGenerateEntity` in function `core.app.apps.chat.app_generator.ChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:158:45
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:144:45
ERROR Argument `DummyQueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.chat.app_generator.ChatAppGenerator._generate_worker` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:159:31
-ERROR Argument `DummyGenerateEntity` is not assignable to parameter `application_generate_entity` with type `ChatAppGenerateEntity` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:186:28
-ERROR Argument `DummyQueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:186:49
-ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:186:70
-ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:186:89
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:145:31
ERROR Argument `DummyGenerateEntity` is not assignable to parameter `application_generate_entity` with type `ChatAppGenerateEntity` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:217:24
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:172:28
ERROR Argument `DummyQueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:217:45
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:172:49
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:217:66
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:172:70
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:217:85
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:172:89
ERROR Argument `DummyGenerateEntity` is not assignable to parameter `application_generate_entity` with type `ChatAppGenerateEntity` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:254:24
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:206:24
ERROR Argument `DummyQueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:254:45
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:206:45
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:254:60
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:206:66
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:254:79
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:206:85
ERROR Argument `DummyGenerateEntity` is not assignable to parameter `application_generate_entity` with type `ChatAppGenerateEntity` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:289:24
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:246:24
ERROR Argument `DummyQueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:289:45
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:246:45
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:289:66
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:246:60
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:289:85
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:246:79
ERROR Argument `DummyGenerateEntity` is not assignable to parameter `application_generate_entity` with type `ChatAppGenerateEntity` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:342:24
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:284:24
ERROR Argument `DummyQueueManager` is not assignable to parameter `queue_manager` with type `AppQueueManager` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:342:45
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:284:45
ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:342:60
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:284:66
ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.chat.app_runner.ChatAppRunner.run` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:342:79
+ --> tests/unit_tests/core/app/apps/chat/test_app_generator_and_runner.py:284:85
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/app/apps/chat/test_generate_response_converter.py:60:16
ERROR Cannot index into `str` [bad-index]
@@ -3422,15 +3377,15 @@
ERROR Class `PipelineRunner` has no class attribute `call_args` [missing-attribute]
--> tests/unit_tests/core/app/apps/pipeline/test_pipeline_generator.py:389:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:92:37
+ --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:66:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:171:37
+ --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:141:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:194:37
+ --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:164:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:220:37
+ --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:190:37
ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `RagPipelineGenerateEntity` in function `core.app.apps.pipeline.pipeline_runner.PipelineRunner.__init__` [bad-argument-type]
- --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:280:37
+ --> tests/unit_tests/core/app/apps/pipeline/test_pipeline_runner.py:249:37
ERROR `Literal['generated-conversation-id']` is not assignable to attribute `id` with type `Never` [bad-assignment]
--> tests/unit_tests/core/app/apps/test_advanced_chat_app_generator.py:55:22
ERROR `Literal['generated-message-id']` is not assignable to attribute `id` with type `Never` [bad-assignment]
@@ -3969,65 +3924,65 @@
ERROR `Literal['unknown']` is not assignable to attribute `stopped_by` with type `QueueStopEvent.StopBy` [bad-assignment]
--> tests/unit_tests/core/app/entities/test_queue_entities.py:11:28
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:32:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:27:16
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:32:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:27:16
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:32:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:27:16
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:32:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:27:16
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:32:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:27:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:32:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:27:16
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:33:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:28:16
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:33:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:28:16
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:33:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:28:16
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:33:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:28:16
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:33:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:28:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:33:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:28:16
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:56:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:51:16
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:56:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:51:16
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:56:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:51:16
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:56:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:51:16
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:56:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:51:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:56:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:51:16
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:57:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:52:16
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:57:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:52:16
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:57:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:52:16
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:57:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:52:16
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:57:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:52:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:57:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:52:16
ERROR Cannot index into `bool` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:58:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:53:16
ERROR Cannot index into `float` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:58:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:53:16
ERROR Cannot index into `int` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:58:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:53:16
ERROR Cannot index into `list[JsonValue]` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:58:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:53:16
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:58:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:53:16
ERROR `None` is not subscriptable [unsupported-operation]
- --> tests/unit_tests/core/app/entities/test_task_entities.py:58:16
+ --> tests/unit_tests/core/app/entities/test_task_entities.py:53:16
ERROR Object of class `Mapping` has no attribute `close` [missing-attribute]
--> tests/unit_tests/core/app/features/rate_limiting/test_rate_limit.py:396:9
ERROR Argument `TestRateLimitGenerator.test_should_handle_generator_without_close_method.SimpleGenerator` is not assignable to parameter `generator` with type `Generator[str] | Mapping[str, Any]` in function `core.app.features.rate_limiting.rate_limit.RateLimit.generate` [bad-argument-type]
@@ -4551,16 +4506,6 @@
--> tests/unit_tests/core/plugin/impl/test_trigger_client.py:179:21
ERROR Argument `werkzeug.wrappers.request.Request` is not assignable to parameter `request` with type `flask.wrappers.Request` in function `core.plugin.impl.trigger.PluginTriggerClient.dispatch_event` [bad-argument-type]
--> tests/unit_tests/core/plugin/impl/test_trigger_client.py:193:25
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `core.plugin.backwards_invocation.app.PluginAppBackwardsInvocation._get_user` [bad-argument-type]
- --> tests/unit_tests/core/plugin/test_backwards_invocation_app.py:339:62
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `core.plugin.backwards_invocation.app.PluginAppBackwardsInvocation._get_user` [bad-argument-type]
- --> tests/unit_tests/core/plugin/test_backwards_invocation_app.py:353:62
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `core.plugin.backwards_invocation.app.PluginAppBackwardsInvocation._get_user` [bad-argument-type]
- --> tests/unit_tests/core/plugin/test_backwards_invocation_app.py:368:59
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `core.plugin.backwards_invocation.app.PluginAppBackwardsInvocation._get_workflow` [bad-argument-type]
- --> tests/unit_tests/core/plugin/test_backwards_invocation_app.py:393:59
-ERROR Argument `SimpleNamespace` is not assignable to parameter `app` with type `App` in function `core.plugin.backwards_invocation.app.PluginAppBackwardsInvocation._get_app_model_config_dict` [bad-argument-type]
- --> tests/unit_tests/core/plugin/test_backwards_invocation_app.py:417:74
ERROR Argument `SimpleNamespace` is not assignable to parameter `tenant` with type `Tenant` in function `core.plugin.backwards_invocation.model.PluginModelBackwardsInvocation.invoke_summary` [bad-argument-type]
--> tests/unit_tests/core/plugin/test_backwards_invocation_model.py:54:72
ERROR Generator function should return `Generator` [bad-return]
@@ -5792,8 +5737,6 @@
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_plugin_tools_builder.py:229:12
ERROR `not in` is not supported between `Literal['region']` and `None` [not-iterable]
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_plugin_tools_builder.py:229:12
-ERROR Object of class `LayerConfig` has no attribute `prefix`
-ERROR Object of class `LayerConfig` has no attribute `prefix`
ERROR Class member `_WaitableFakeAgentBackendRunClient.wait_run` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
--> tests/unit_tests/core/workflow/nodes/agent_v2/test_session_cleanup_layer.py:113:9
ERROR Argument `object` is not assignable to parameter `status` with type `Literal['cancelled', 'failed', 'running', 'succeeded']` in function `dify_agent.protocol.schemas.RunStatusResponse.__init__` [bad-argument-type]
@@ -5971,19 +5914,19 @@
ERROR Argument `list[SystemPromptMessage]` is not assignable to parameter `prompt_messages` with type `list[PromptMessage]` in function `graphon.nodes.llm.llm_utils._append_file_prompts` [bad-argument-type]
--> tests/unit_tests/core/workflow/nodes/llm/test_llm_utils.py:744:29
ERROR Object of class `FunctionType` has no attribute `assert_called_once_with` [missing-attribute]
- --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1279:9
+ --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1274:9
ERROR Object of class `FunctionType` has no attribute `assert_called_once_with` [missing-attribute]
- --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1312:9
+ --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1307:9
ERROR Class member `_UnknownItem.__str__` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
- --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1325:13
+ --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1320:13
ERROR Argument `Iterator[Any]` is not assignable to parameter `invoke_result` with type `Generator[LLMResultChunk | LLMStructuredOutput] | LLMResult` in function `graphon.nodes.llm.node.LLMNode.handle_invoke_result` [bad-argument-type]
- --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1572:31
+ --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1567:31
ERROR Argument `Generator[None, Unknown]` is not assignable to parameter `invoke_result` with type `Generator[LLMResultChunk | LLMStructuredOutput] | LLMResult` in function `graphon.nodes.llm.node.LLMNode.handle_invoke_result` [bad-argument-type]
- --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1613:31
+ --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1604:31
ERROR Missing argument `run_context` in function `core.app.llm.model_access.DifyCredentialsProvider.__init__` [missing-argument]
- --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1805:32
+ --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1796:32
ERROR Missing argument `run_context` in function `core.app.llm.model_access.DifyModelFactory.__init__` [missing-argument]
- --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1808:25
+ --> tests/unit_tests/core/workflow/nodes/llm/test_node.py:1799:25
ERROR `in` is not supported between `Literal['variables']` and `object` [not-iterable]
--> tests/unit_tests/core/workflow/nodes/template_transform/template_transform_node_spec.py:145:16
ERROR `in` is not supported between `Literal['template']` and `object` [not-iterable]
@@ -6274,12 +6217,6 @@
--> tests/unit_tests/factories/test_file_factory.py:286:16
ERROR `in` is not supported between `Literal['.txt']` and `None` [not-iterable]
--> tests/unit_tests/factories/test_file_factory.py:287:16
-ERROR Missing argument `re_sign_file_url_answer` in function `fields.message_fields.ExploreMessageListItem.__init__` [missing-argument]
- --> tests/unit_tests/fields/test_message_fields.py:23:38
-ERROR Missing argument `re_sign_file_url_answer` in function `fields.message_fields.ExploreMessageListItem.__init__` [missing-argument]
- --> tests/unit_tests/fields/test_message_fields.py:30:38
-ERROR Missing argument `re_sign_file_url_answer` in function `fields.message_fields.MessageListItem.__init__` [missing-argument]
- --> tests/unit_tests/fields/test_message_fields.py:35:34
ERROR `dict[str, str | None]` is not assignable to TypedDict key `site` with type `list[dict[str, Any]] | list[dict[str, str]] | str` [bad-typed-dict-key]
--> tests/unit_tests/libs/_human_input/support.py:102:32
ERROR `dict[str, str]` is not assignable to TypedDict key `site` with type `list[FormInputConfig] | list[dict[str, Any]] | str` [bad-typed-dict-key]
@@ -6293,47 +6230,53 @@
ERROR `<=` is not supported between `None` and `datetime` [unsupported-operation]
--> tests/unit_tests/libs/_human_input/test_models.py:121:16
ERROR Object of class `Subscription` has no attribute `_start_if_needed` [missing-attribute]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:155:17
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:158:17
ERROR Object of class `Subscription` has no attribute `_start_if_needed` [missing-attribute]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:223:17
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:226:17
ERROR Argument `FakeRedisClient` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:702:20
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:699:20
ERROR Argument `FakeRedisClient` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:722:20
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:719:20
ERROR Argument `TestRedisShardedSubscription.test_get_message_uses_target_node_for_cluster_client.DummyRedisCluster` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:907:20
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:905:20
ERROR Argument `FakeRedisClient` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:1037:20
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:1035:20
ERROR Argument `FakeRedisClient` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:1134:24
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:1133:24
ERROR Class member `FailExpireRedis.expire` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
--> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:75:9
ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:147:36
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:130:36
ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:175:45
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:158:45
ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:183:45
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:166:45
+ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:180:43
+ERROR Object of class `Subscription` has no attribute `_join_timeout_ms` [missing-attribute]
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:187:20
+ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:192:43
+ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:205:43
ERROR Argument `FailExpireRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:197:43
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:222:43
ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:248:43
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:273:43
ERROR Argument `TestStreamsSubscription.test_listener_normalizes_supported_payloads_and_ignores_unsupported_shapes.OneShotRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:273:45
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:298:45
ERROR Argument `object` is not assignable to parameter `o` with type `Buffer | Iterable[SupportsIndex] | SupportsBytes | SupportsIndex` in function `bytes.__new__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:281:35
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:306:35
ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:322:45
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:347:45
ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:330:45
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:355:45
ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:339:45
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:364:45
ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:347:45
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:372:45
ERROR Argument `BlockingRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:367:45
-ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
- --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:385:45
+ --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:399:45
ERROR Class member `TestCronCompatibility.setUp` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
--> tests/unit_tests/libs/test_cron_compatibility.py:21:9
ERROR Class member `TestTimezoneCompatibility.setUp` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
@@ -6388,20 +6331,12 @@
--> tests/unit_tests/libs/test_time_parser.py:54:38
ERROR Argument `SimpleNamespace` is not assignable to parameter `account` with type `Account | None` in function `libs.helper.TokenManager.generate_token` [bad-argument-type]
--> tests/unit_tests/libs/test_token_manager.py:76:17
-ERROR Object of class `object` has no attribute `op` [missing-attribute]
- --> tests/unit_tests/migrations/test_agent_drive_skill_metadata_refactor.py:59:23
-ERROR Object of class `object` has no attribute `op` [missing-attribute]
- --> tests/unit_tests/migrations/test_agent_drive_skill_metadata_refactor.py:60:9
-ERROR Object of class `object` has no attribute `op` [missing-attribute]
- --> tests/unit_tests/migrations/test_agent_drive_skill_metadata_refactor.py:64:13
ERROR TypedDict `TenantCustomConfigDict` does not have key `feature1` [bad-typed-dict-key]
--> tests/unit_tests/models/test_account_models.py:594:23
ERROR TypedDict `TenantCustomConfigDict` does not have key `feature2` [bad-typed-dict-key]
--> tests/unit_tests/models/test_account_models.py:595:23
ERROR Argument `dict[str, bool | str]` is not assignable to parameter `value` with type `TenantCustomConfigDict` in function `models.account.Tenant.custom_config_dict` [bad-argument-type]
--> tests/unit_tests/models/test_account_models.py:616:37
-ERROR Argument `dict[str, bool]` is not assignable to parameter `annotation_reply` with type `AnnotationReplyDisabledConfig | AnnotationReplyEnabledConfig | None` in function `models.model.AppModelConfig.to_dict` [bad-argument-type]
- --> tests/unit_tests/models/test_app_models.py:357:54
ERROR Class member `FooModel.id` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
--> tests/unit_tests/models/test_base.py:6:14
ERROR `None` is not subscriptable [unsupported-operation]
@@ -6485,53 +6420,43 @@
ERROR Argument `list[SimpleNamespace]` is not assignable to parameter `recipients` with type `Sequence[HumanInputFormRecipient]` in function `repositories.sqlalchemy_api_workflow_run_repository._build_human_input_required_reason` [bad-argument-type]
--> tests/unit_tests/repositories/test_sqlalchemy_api_workflow_run_repository.py:56:9
ERROR Object of class `object` has no attribute `prompt` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:665:12
-ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:841:12
-ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:842:12
-ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:843:12
-ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:845:12
-ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/agent/test_agent_services.py:846:12
+ --> tests/unit_tests/services/agent/test_agent_services.py:591:12
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `scoped_session[Unknown]` in function `services.app_service.AppService._build_app_list_filters` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:1863:61
+ --> tests/unit_tests/services/agent/test_agent_services.py:1233:61
ERROR Object of class `object` has no attribute `name` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:2337:16
+ --> tests/unit_tests/services/agent/test_agent_services.py:1634:16
ERROR Object of class `object` has no attribute `mode` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:2338:16
-ERROR Object of class `object` has no attribute `agent_role` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:2339:16
+ --> tests/unit_tests/services/agent/test_agent_services.py:1635:16
ERROR Object of class `object` has no attribute `agent_role` [missing-attribute]
- --> tests/unit_tests/services/agent/test_agent_services.py:2415:16
-ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.validate_agent_nodes_for_publish` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2624:25
-ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.validate_agent_nodes_for_publish` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2646:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:1636:16
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.project_draft_bindings_to_graph` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2710:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:1911:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2769:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:1970:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2838:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:2039:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2893:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:2094:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2925:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:2126:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:2957:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:2158:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3003:25
+ --> tests/unit_tests/services/agent/test_agent_services.py:2204:25
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3063:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:2264:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3133:21
+ --> tests/unit_tests/services/agent/test_agent_services.py:2334:21
ERROR Argument `FakeSession` is not assignable to parameter `session` with type `Session` in function `services.agent.workflow_publish_service.WorkflowAgentPublishService.sync_roster_agent_bindings_for_draft` [bad-argument-type]
- --> tests/unit_tests/services/agent/test_agent_services.py:3166:21
-ERROR Cannot set item in `dict[str, str]` [unsupported-operation]
- --> tests/unit_tests/services/agent/test_agent_services.py:3412:31
+ --> tests/unit_tests/services/agent/test_agent_services.py:2367:21
+ERROR Object of class `object` has no attribute `skills_files` [missing-attribute]
+ --> tests/unit_tests/services/agent/test_agent_services.py:2579:37
+ERROR Object of class `object` has no attribute `skills_files` [missing-attribute]
+ --> tests/unit_tests/services/agent/test_agent_services.py:2616:34
+ERROR Object of class `object` has no attribute `skills_files` [missing-attribute]
+ --> tests/unit_tests/services/agent/test_agent_services.py:2640:34
+ERROR Object of class `object` has no attribute `skills_files` [missing-attribute]
+ --> tests/unit_tests/services/agent/test_agent_services.py:2641:12
ERROR Object of class `NoneType` has no attribute `workflow_prompt` [missing-attribute]
--> tests/unit_tests/services/agent/test_composer_mention_validation.py:113:5
ERROR Class member `ConcreteApiKeyAuth.validate_credentials` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
@@ -6613,43 +6538,43 @@
ERROR Argument `None` is not assignable to parameter `response` with type `Response` in function `httpx._exceptions.HTTPStatusError.__init__` [bad-argument-type]
--> tests/unit_tests/services/enterprise/test_plugin_manager_service.py:61:26
ERROR Cannot index into `list[Unknown]` [bad-index]
- --> tests/unit_tests/services/hit_service.py:445:20
+ --> tests/unit_tests/services/hit_service.py:431:20
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/hit_service.py:445:20
+ --> tests/unit_tests/services/hit_service.py:431:20
ERROR Argument `dict[str, str] | list[Unknown] | object` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/services/hit_service.py:446:24
+ --> tests/unit_tests/services/hit_service.py:432:24
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/hit_service.py:447:20
+ --> tests/unit_tests/services/hit_service.py:433:20
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/services/hit_service.py:447:20
+ --> tests/unit_tests/services/hit_service.py:433:20
ERROR Cannot index into `dict[str, str]` [bad-index]
- --> tests/unit_tests/services/hit_service.py:447:38
+ --> tests/unit_tests/services/hit_service.py:433:38
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/hit_service.py:448:20
+ --> tests/unit_tests/services/hit_service.py:434:20
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/services/hit_service.py:448:20
+ --> tests/unit_tests/services/hit_service.py:434:20
ERROR Cannot index into `dict[str, str]` [bad-index]
- --> tests/unit_tests/services/hit_service.py:448:38
+ --> tests/unit_tests/services/hit_service.py:434:38
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/hit_service.py:449:20
+ --> tests/unit_tests/services/hit_service.py:435:20
ERROR Cannot index into `str` [bad-index]
- --> tests/unit_tests/services/hit_service.py:449:20
+ --> tests/unit_tests/services/hit_service.py:435:20
ERROR Cannot index into `dict[str, str]` [bad-index]
- --> tests/unit_tests/services/hit_service.py:449:38
+ --> tests/unit_tests/services/hit_service.py:435:38
ERROR Cannot index into `list[Unknown]` [bad-index]
- --> tests/unit_tests/services/hit_service.py:476:16
+ --> tests/unit_tests/services/hit_service.py:462:16
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/hit_service.py:476:16
+ --> tests/unit_tests/services/hit_service.py:462:16
ERROR Cannot index into `list[Unknown]` [bad-index]
- --> tests/unit_tests/services/hit_service.py:511:20
+ --> tests/unit_tests/services/hit_service.py:497:20
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/hit_service.py:511:20
+ --> tests/unit_tests/services/hit_service.py:497:20
ERROR Argument `dict[str, str] | list[Unknown] | object` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/services/hit_service.py:512:24
+ --> tests/unit_tests/services/hit_service.py:498:24
ERROR Cannot index into `list[Unknown]` [bad-index]
- --> tests/unit_tests/services/hit_service.py:545:20
+ --> tests/unit_tests/services/hit_service.py:531:20
ERROR Cannot index into `object` [bad-index]
- --> tests/unit_tests/services/hit_service.py:545:20
+ --> tests/unit_tests/services/hit_service.py:531:20
ERROR `in` is not supported between `Literal['license_required']` and `None` [not-iterable]
--> tests/unit_tests/services/openapi/test_mint_policy.py:109:16
ERROR Object of class `Marketplace` has no attribute `repo`
@@ -6829,7 +6754,7 @@
ERROR Object of class `FromClause` has no attribute `drop` [missing-attribute]
--> tests/unit_tests/services/test_agent_drive_service.py:74:5
ERROR Argument `Literal['created_at']` is not assignable to parameter `k` with type `Never` in function `_typeshed._type_checker_internals.TypedDictFallback.pop` [bad-argument-type]
- --> tests/unit_tests/services/test_agent_drive_service.py:745:32
+ --> tests/unit_tests/services/test_agent_drive_service.py:557:32
ERROR Argument `dict[str, str]` is not assignable to parameter `args` with type `InsertAnnotationArgs` in function `services.annotation_service.AppAnnotationService.insert_app_annotation_directly` [bad-argument-type]
--> tests/unit_tests/services/test_annotation_service.py:492:69
ERROR TypedDict `AnnotationSettingDisabledDict` does not have key `embedding_model` [bad-typed-dict-key]
@@ -6840,7 +6765,7 @@
--> tests/unit_tests/services/test_app_generate_service.py:532:17
ERROR Argument `_FakeStreams` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
--> tests/unit_tests/services/test_app_generate_service_streaming_integration.py:96:36
-ERROR Argument `_FakeRedisClient` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.pubsub_channel.BroadcastChannel.__init__` [bad-argument-type]
+ERROR Argument `_FakeRedisClient` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.channel.BroadcastChannel.__init__` [bad-argument-type]
--> tests/unit_tests/services/test_app_generate_service_streaming_integration.py:116:34
ERROR Argument `None` is not assignable to parameter `orig` with type `BaseException` in function `sqlalchemy.exc.DBAPIError.__init__` [bad-argument-type]
--> tests/unit_tests/services/test_app_service.py:359:84
|
Contributor
Pyrefly Type Coverage
|
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.
Summary
DocumentSegment.sign_content.Fixes #36532
Tests
python -m compileall -q services/hit_testing_service.py tests/test_containers_integration_tests/services/test_hit_testing_service.pyNotes
python -m pytest -q tests/test_containers_integration_tests/services/test_hit_testing_service.py -k "signed_segment_content or dump_retrieval_records"could not run in this local shell becausepytestis not installed.