Skip to content

fix: accept icon type in app icon updates#35360

Open
hyl64 wants to merge 2 commits intolanggenius:mainfrom
hyl64:fix/app-icon-icon-type
Open

fix: accept icon type in app icon updates#35360
hyl64 wants to merge 2 commits intolanggenius:mainfrom
hyl64:fix/app-icon-icon-type

Conversation

@hyl64
Copy link
Copy Markdown
Contributor

@hyl64 hyl64 commented Apr 17, 2026

Summary

This PR adds icon_type support to the app icon update API so the documented payload is accepted and persisted consistently.

Issues

Verification

  • py_compile passed
  • basedpyright passed
  • ruff commit checks passed

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-17 08:08:21.185850076 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-17 08:08:08.588653950 +0000
@@ -1,7 +1,7 @@
 ERROR Object of class `Server` has no attribute `app` [missing-attribute]
    --> app_factory.py:132:5
 ERROR Object of class `App` has no attribute `access_mode` [missing-attribute]
-   --> controllers/console/app/app.py:552:13
+   --> controllers/console/app/app.py:553:13
 ERROR Object of class `object` has no attribute `value` [missing-attribute]
   --> controllers/console/app/conversation_variables.py:48:24
 ERROR Argument `str | None` is not assignable to parameter `language` with type `str` in function `services.account_service.AccountService.send_email_register_email` [bad-argument-type]
@@ -66,6 +66,16 @@
    --> core/model_manager.py:343:13
 ERROR Missing positional argument `function` in function `ModelInstance._round_robin_invoke` [bad-argument-count]
    --> core/model_manager.py:360:13
+ERROR Argument `dict[str, list[str] | str | None]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `mlflow.tracing.fluent.start_span_no_context` [bad-argument-type]
+   --> core/ops/mlflow_trace/mlflow_trace.py:271:24
+ERROR Argument `dict[str, dict[str, Any] | str | None]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `mlflow.tracing.fluent.start_span_no_context` [bad-argument-type]
+   --> core/ops/mlflow_trace/mlflow_trace.py:335:24
+ERROR Argument `dict[str, dict[str, Any] | str | None]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `mlflow.tracing.fluent.start_span_no_context` [bad-argument-type]
+   --> core/ops/mlflow_trace/mlflow_trace.py:372:24
+ERROR Argument `dict[str, dict[str, Any] | str | None]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `mlflow.tracing.fluent.start_span_no_context` [bad-argument-type]
+   --> core/ops/mlflow_trace/mlflow_trace.py:396:24
+ERROR Argument `dict[str, int | str | None]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `mlflow.tracing.fluent.start_span_no_context` [bad-argument-type]
+   --> core/ops/mlflow_trace/mlflow_trace.py:415:24
 ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
    --> core/ops/ops_trace_manager.py:206:9
 ERROR Object of class `NoneType` has no attribute `data_source_type` [missing-attribute]
@@ -120,208 +130,6 @@
   --> fields/conversation_variable_fields.py:60:24
 ERROR Argument `Module[Crypto.Hash.SHA1] | Unknown` is not assignable to parameter with type `Hash | HashModule` [bad-argument-type]
   --> libs/gmpy2_pkcs10aep_cipher.py:73:49
-ERROR Object of class `NoneType` has no attribute `trace_id` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/data_exporter/test_traceclient.py:228:16
-ERROR Object of class `NoneType` has no attribute `span_id` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/data_exporter/test_traceclient.py:229:16
-ERROR Object of class `NoneType` has no attribute `span_id` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/data_exporter/test_traceclient.py:230:16
-ERROR Missing argument `span_id` in function `dify_trace_aliyun.entities.aliyun_trace_entity.SpanData.__init__` [missing-argument]
-  --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/entities/test_aliyun_trace_entity.py:67:21
-ERROR Argument `int` is not assignable to parameter `trace_flags` with type `TraceFlags | None` in function `opentelemetry.trace.span.SpanContext.__new__` [bad-argument-type]
-  --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:66:21
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:273:12
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:279:12
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:305:16
-ERROR Type `object` is not iterable [not-iterable]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:306:5
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:327:12
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:341:16
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:342:12
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:351:12
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:374:16
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:375:12
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.build_workflow_task_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:484:97
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.build_workflow_tool_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:507:97
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.build_workflow_tool_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:516:98
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.build_workflow_retrieval_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:539:102
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.build_workflow_retrieval_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:546:103
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.build_workflow_llm_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:573:96
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.build_workflow_llm_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:585:97
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.add_workflow_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:603:50
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:605:16
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:606:20
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:607:21
-ERROR Object of class `object` has no attribute `clear` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:617:5
-ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `dify_trace_aliyun.aliyun_trace.AliyunDataTrace.add_workflow_span` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:621:57
-ERROR Argument `object` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:622:16
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:623:12
-ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:644:16
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace.py:645:12
-ERROR Argument `Literal['not a list']` is not assignable to parameter `retrieval_documents` with type `list[Unknown]` in function `dify_trace_aliyun.utils.format_retrieval_documents` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace_utils.py:173:39
-ERROR Argument `None` is not assignable to parameter `process_data` with type `Mapping[str, Any]` in function `dify_trace_aliyun.utils.format_input_messages` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace_utils.py:214:34
-ERROR Argument `None` is not assignable to parameter `outputs` with type `Mapping[str, Any]` in function `dify_trace_aliyun.utils.format_output_messages` [bad-argument-type]
-   --> providers/trace/trace-aliyun/tests/unit_tests/aliyun_trace/test_aliyun_trace_utils.py:247:35
-ERROR Missing argument `license_key` in function `dify_trace_aliyun.config.AliyunConfig.__init__` [missing-argument]
-  --> providers/trace/trace-aliyun/tests/unit_tests/test_config_entity.py:28:25
-ERROR Missing argument `endpoint` in function `dify_trace_aliyun.config.AliyunConfig.__init__` [missing-argument]
-  --> providers/trace/trace-aliyun/tests/unit_tests/test_config_entity.py:28:25
-ERROR Missing argument `endpoint` in function `dify_trace_aliyun.config.AliyunConfig.__init__` [missing-argument]
-  --> providers/trace/trace-aliyun/tests/unit_tests/test_config_entity.py:31:25
-ERROR Missing argument `license_key` in function `dify_trace_aliyun.config.AliyunConfig.__init__` [missing-argument]
-  --> providers/trace/trace-aliyun/tests/unit_tests/test_config_entity.py:34:25
-ERROR Argument `test_set_span_status.SilentError` is not assignable to parameter `error` with type `Exception | str | None` in function `dify_trace_arize_phoenix.arize_phoenix_trace.set_span_status` [bad-argument-type]
-   --> providers/trace/trace-arize-phoenix/tests/unit_tests/arize_phoenix_trace/test_arize_phoenix_trace.py:132:27
-ERROR Missing argument `public_key` in function `dify_trace_langfuse.config.LangfuseConfig.__init__` [missing-argument]
-  --> providers/trace/trace-langfuse/tests/unit_tests/test_config_entity.py:31:27
-ERROR Missing argument `secret_key` in function `dify_trace_langfuse.config.LangfuseConfig.__init__` [missing-argument]
-  --> providers/trace/trace-langfuse/tests/unit_tests/test_config_entity.py:31:27
-ERROR Missing argument `secret_key` in function `dify_trace_langfuse.config.LangfuseConfig.__init__` [missing-argument]
-  --> providers/trace/trace-langfuse/tests/unit_tests/test_config_entity.py:34:27
-ERROR Missing argument `public_key` in function `dify_trace_langfuse.config.LangfuseConfig.__init__` [missing-argument]
-  --> providers/trace/trace-langfuse/tests/unit_tests/test_config_entity.py:37:27
-ERROR Argument `Literal['invalid']` is not assignable to parameter `time_to_first_token` with type `float | int | None` in function `dify_trace_langfuse.langfuse_trace.LangFuseDataTrace._get_completion_start_time` [bad-argument-type]
-   --> providers/trace/trace-langfuse/tests/unit_tests/test_langfuse_trace.py:137:61
-ERROR Missing argument `api_key` in function `dify_trace_langsmith.config.LangSmithConfig.__init__` [missing-argument]
-  --> providers/trace/trace-langsmith/tests/unit_tests/test_config_entity.py:24:28
-ERROR Missing argument `project` in function `dify_trace_langsmith.config.LangSmithConfig.__init__` [missing-argument]
-  --> providers/trace/trace-langsmith/tests/unit_tests/test_config_entity.py:24:28
-ERROR Missing argument `project` in function `dify_trace_langsmith.config.LangSmithConfig.__init__` [missing-argument]
-  --> providers/trace/trace-langsmith/tests/unit_tests/test_config_entity.py:27:28
-ERROR Missing argument `api_key` in function `dify_trace_langsmith.config.LangSmithConfig.__init__` [missing-argument]
-  --> providers/trace/trace-langsmith/tests/unit_tests/test_config_entity.py:30:28
-ERROR Object of class `FunctionType` has no attribute `called` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:158:16
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:165:28
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:172:28
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:180:24
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:187:28
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:194:28
-ERROR Object of class `FunctionType` has no attribute `call_count` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:217:16
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:218:28
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:243:28
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:286:24
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:295:28
-ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
-   --> providers/trace/trace-opik/tests/unit_tests/test_opik_trace.py:329:28
-ERROR Object of class `ModuleType` has no attribute `Histogram` [missing-attribute]
-  --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:87:5
-ERROR Object of class `ModuleType` has no attribute `MeterProvider` [missing-attribute]
-  --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:88:5
-ERROR Object of class `ModuleType` has no attribute `AggregationTemporality` [missing-attribute]
-  --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:92:5
-ERROR Object of class `ModuleType` has no attribute `PeriodicExportingMetricReader` [missing-attribute]
-  --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:93:5
-ERROR Object of class `ModuleType` has no attribute `OTLPMetricExporter` [missing-attribute]
-  --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:97:5
-ERROR Object of class `ModuleType` has no attribute `OTLPMetricExporter` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:101:5
-ERROR Object of class `ModuleType` has no attribute `OTLPMetricExporter` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:105:5
-ERROR Object of class `ModuleType` has no attribute `OTLPMetricExporter` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:109:5
-ERROR Argument `Literal[123]` is not assignable to parameter `endpoint` with type `str` in function `dify_trace_tencent.client.TencentTraceClient._resolve_grpc_target` [bad-argument-type]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:211:52
-ERROR Object of class `object` has no attribute `debug` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:258:5
-ERROR Object of class `object` has no attribute `get_span_context` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:264:5
-ERROR Object of class `object` has no attribute `set_attributes` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:279:5
-ERROR Object of class `object` has no attribute `add_event` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:280:5
-ERROR Object of class `object` has no attribute `set_status` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:281:5
-ERROR Object of class `object` has no attribute `end` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:282:5
-ERROR Cannot set item in `dict[int, SpanContext]` [unsupported-operation]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:288:32
-ERROR Object of class `object` has no attribute `get_span_context` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:290:5
-ERROR Object of class `object` has no attribute `NonRecordingSpan` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:305:5
-ERROR Object of class `object` has no attribute `set_span_in_context` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:306:5
-ERROR Object of class `object` has no attribute `get_span_context` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:312:5
-ERROR Object of class `object` has no attribute `exception` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:328:5
-ERROR Object of class `object` has no attribute `force_flush` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:394:5
-ERROR Object of class `object` has no attribute `shutdown` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:395:5
-ERROR Object of class `object` has no attribute `shutdown` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:396:5
-ERROR Object of class `NoneType` has no attribute `shutdown` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:408:5
-ERROR Object of class `object` has no attribute `debug` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:412:5
-ERROR Object of class `object` has no attribute `debug` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:416:5
-ERROR Object of class `object` has no attribute `exception` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:454:5
-ERROR Object of class `object` has no attribute `get_span_context` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:460:5
-ERROR Object of class `object` has no attribute `set_attributes` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:476:16
-ERROR Argument `dict[str, int | object]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `dify_trace_tencent.client.TencentTraceClient.record_llm_duration` [bad-argument-type]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:488:37
-ERROR Argument `dict[str, bool | object]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `dify_trace_tencent.client.TencentTraceClient.record_trace_duration` [bad-argument-type]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:499:39
-ERROR Object of class `object` has no attribute `debug` [missing-attribute]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:524:5
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:535:12
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:546:12
-ERROR Cannot index into `object` [bad-index]
-   --> providers/trace/trace-tencent/tests/unit_tests/tencent_trace/test_client.py:557:12
-ERROR Missing argument `api_key` in function `dify_trace_weave.config.WeaveConfig.__init__` [missing-argument]
-  --> providers/trace/trace-weave/tests/unit_tests/test_config_entity.py:34:24
-ERROR Missing argument `project` in function `dify_trace_weave.config.WeaveConfig.__init__` [missing-argument]
-  --> providers/trace/trace-weave/tests/unit_tests/test_config_entity.py:34:24
-ERROR Missing argument `project` in function `dify_trace_weave.config.WeaveConfig.__init__` [missing-argument]
-  --> providers/trace/trace-weave/tests/unit_tests/test_config_entity.py:37:24
-ERROR Missing argument `api_key` in function `dify_trace_weave.config.WeaveConfig.__init__` [missing-argument]
-  --> providers/trace/trace-weave/tests/unit_tests/test_config_entity.py:40:24
 ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector.AlibabaCloudMySQLVectorFactory.init_vector` [bad-argument-type]
   --> providers/vdb/vdb-alibabacloud-mysql/tests/unit_tests/test_alibabacloud_mysql_factory.py:42:38
 ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `dify_vdb_alibabacloud_mysql.alibabacloud_mysql_vector.AlibabaCloudMySQLVectorFactory.init_vector` [bad-argument-type]
@@ -780,6 +588,8 @@
   --> schedule/queue_monitor_task.py:14:21
 ERROR Object of class `Tenant` has no attribute `role` [missing-attribute]
     --> services/account_service.py:1154:13
+ERROR Argument `IconType | str` is not assignable to parameter `value` with type `IconType | SQLCoreOperations[IconType | None] | None` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
+   --> services/app_service.py:321:29
 ERROR No matching overload found for function `flask.helpers.stream_with_context` called with arguments: (Generator[bytes]) [no-matching-overload]
    --> services/audio_service.py:144:56
 ERROR No matching overload found for function `flask.helpers.stream_with_context` called with arguments: (Generator[bytes]) [no-matching-overload]
@@ -879,7 +689,7 @@
 ERROR `dict[str, str | None]` is not assignable to attribute `env` with type `dict[str, str]` [bad-assignment]
    --> tests/test_containers_integration_tests/conftest.py:204:39
 ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
-   --> tests/test_containers_integration_tests/controllers/console/app/test_app_apis.py:633:51
+   --> tests/test_containers_integration_tests/controllers/console/app/test_app_apis.py:662:51
 ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
    --> tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py:196:9
 ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
@@ -1259,51 +1069,51 @@
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
    --> tests/test_containers_integration_tests/services/test_app_service.py:652:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:711:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:713:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:771:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:773:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:831:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:833:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:882:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:884:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:895:70
+   --> tests/test_containers_integration_tests/services/test_app_service.py:897:70
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:934:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:936:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:957:70
+   --> tests/test_containers_integration_tests/services/test_app_service.py:959:70
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:994:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:996:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1033:38
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1035:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1073:38
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1075:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `value` with type `AppStatus | SQLCoreOperations[AppStatus]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1080:23
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1082:23
 ERROR Argument `Literal['uuid']` is not assignable to parameter `value` with type `CustomizeTokenStrategy | SQLCoreOperations[CustomizeTokenStrategy]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1082:41
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1084:41
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1126:36
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1128:36
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1158:13
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1160:13
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1173:13
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1175:13
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1188:13
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1190:13
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1204:13
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1206:13
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1220:68
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1222:68
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1228:68
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1230:68
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1236:68
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1238:68
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1244:68
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1246:68
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `services.app_service.AppService.get_app_meta` [bad-argument-type]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1280:41
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1282:41
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `services.app_service.AppService.get_app_meta` [bad-argument-type]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1294:41
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1296:41
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/services/test_conversation_service.py:43:18
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
@@ -4080,7 +3890,7 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `db_provider` with type `MCPToolProvider` in function `core.entities.mcp_provider.MCPProviderEntity.from_db_model` [bad-argument-type]
   --> tests/unit_tests/core/entities/test_entities_mcp_provider.py:59:46
 ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:635:12
+   --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:639:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `credential_record` with type `ProviderCredential | ProviderModelCredential` in function `core.entities.provider_configuration.ProviderConfiguration._update_load_balancing_configs_with_credential` [bad-argument-type]
    --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:862:31
 ERROR Argument `SimpleNamespace` is not assignable to parameter `credential_record` with type `ProviderCredential | ProviderModelCredential` in function `core.entities.provider_configuration.ProviderConfiguration._update_load_balancing_configs_with_credential` [bad-argument-type]
@@ -4092,7 +3902,7 @@
 ERROR `None` is not subscriptable [unsupported-operation]
     --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1012:12
 ERROR `None` is not subscriptable [unsupported-operation]
-    --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1497:12
+    --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1499:12
 ERROR `None` is not subscriptable [unsupported-operation]
     --> tests/unit_tests/core/entities/test_entities_provider_configuration.py:1688:12
 ERROR Object of class `ModuleType` has no attribute `MockExtension` [missing-attribute]
@@ -4265,8 +4075,210 @@
   --> tests/unit_tests/core/moderation/api/test_api.py:47:35
 ERROR Argument `Literal['invalid']` is not assignable to parameter `config` with type `dict[str, Any] | None` in function `core.moderation.base.Moderation.__init__` [bad-argument-type]
     --> tests/unit_tests/core/moderation/test_sensitive_word_filter.py:1282:92
+ERROR Object of class `NoneType` has no attribute `trace_id` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/data_exporter/test_traceclient.py:229:16
+ERROR Object of class `NoneType` has no attribute `span_id` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/data_exporter/test_traceclient.py:230:16
+ERROR Object of class `NoneType` has no attribute `span_id` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/data_exporter/test_traceclient.py:231:16
+ERROR Missing argument `span_id` in function `core.ops.aliyun_trace.entities.aliyun_trace_entity.SpanData.__init__` [missing-argument]
+  --> tests/unit_tests/core/ops/aliyun_trace/entities/test_aliyun_trace_entity.py:68:21
+ERROR Argument `int` is not assignable to parameter `trace_flags` with type `TraceFlags | None` in function `opentelemetry.trace.span.SpanContext.__new__` [bad-argument-type]
+  --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:66:21
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:273:12
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:279:12
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:305:16
+ERROR Type `object` is not iterable [not-iterable]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:306:5
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:327:12
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:341:16
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:342:12
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:351:12
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:374:16
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:375:12
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.build_workflow_task_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:484:97
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.build_workflow_tool_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:507:97
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.build_workflow_tool_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:516:98
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.build_workflow_retrieval_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:539:102
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.build_workflow_retrieval_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:546:103
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.build_workflow_llm_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:573:96
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.build_workflow_llm_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:585:97
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.add_workflow_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:603:50
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:605:16
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:606:20
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:607:21
+ERROR Object of class `object` has no attribute `clear` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:617:5
+ERROR Argument `SimpleNamespace` is not assignable to parameter `trace_metadata` with type `TraceMetadata` in function `core.ops.aliyun_trace.aliyun_trace.AliyunDataTrace.add_workflow_span` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:621:57
+ERROR Argument `object` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:622:16
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:623:12
+ERROR Object of class `TraceClient` has no attribute `added_spans` [missing-attribute]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:644:16
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace.py:645:12
+ERROR Argument `Literal['not a list']` is not assignable to parameter `retrieval_documents` with type `list[Unknown]` in function `core.ops.aliyun_trace.utils.format_retrieval_documents` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace_utils.py:173:39
+ERROR Argument `None` is not assignable to parameter `process_data` with type `Mapping[str, Any]` in function `core.ops.aliyun_trace.utils.format_input_messages` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace_utils.py:214:34
+ERROR Argument `None` is not assignable to parameter `outputs` with type `Mapping[str, Any]` in function `core.ops.aliyun_trace.utils.format_output_messages` [bad-argument-type]
+   --> tests/unit_tests/core/ops/aliyun_trace/test_aliyun_trace_utils.py:247:35
+ERROR Argument `test_set_span_status.SilentError` is not assignable to parameter `error` with type `Exception | str | None` in function `core.ops.arize_phoenix_trace.arize_phoenix_trace.set_span_status` [bad-argument-type]
+   --> tests/unit_tests/core/ops/arize_phoenix_trace/test_arize_phoenix_trace.py:132:27
+ERROR Object of class `ModuleType` has no attribute `Histogram` [missing-attribute]
+  --> tests/unit_tests/core/ops/tencent_trace/test_client.py:88:5
+ERROR Object of class `ModuleType` has no attribute `MeterProvider` [missing-attribute]
+  --> tests/unit_tests/core/ops/tencent_trace/test_client.py:89:5
+ERROR Object of class `ModuleType` has no attribute `AggregationTemporality` [missing-attribute]
+  --> tests/unit_tests/core/ops/tencent_trace/test_client.py:93:5
+ERROR Object of class `ModuleType` has no attribute `PeriodicExportingMetricReader` [missing-attribute]
+  --> tests/unit_tests/core/ops/tencent_trace/test_client.py:94:5
+ERROR Object of class `ModuleType` has no attribute `OTLPMetricExporter` [missing-attribute]
+  --> tests/unit_tests/core/ops/tencent_trace/test_client.py:98:5
+ERROR Object of class `ModuleType` has no attribute `OTLPMetricExporter` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:102:5
+ERROR Object of class `ModuleType` has no attribute `OTLPMetricExporter` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:106:5
+ERROR Object of class `ModuleType` has no attribute `OTLPMetricExporter` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:110:5
+ERROR Argument `Literal[123]` is not assignable to parameter `endpoint` with type `str` in function `core.ops.tencent_trace.client.TencentTraceClient._resolve_grpc_target` [bad-argument-type]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:212:52
+ERROR Object of class `object` has no attribute `debug` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:259:5
+ERROR Object of class `object` has no attribute `get_span_context` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:265:5
+ERROR Object of class `object` has no attribute `set_attributes` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:280:5
+ERROR Object of class `object` has no attribute `add_event` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:281:5
+ERROR Object of class `object` has no attribute `set_status` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:282:5
+ERROR Object of class `object` has no attribute `end` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:283:5
+ERROR Cannot set item in `dict[int, SpanContext]` [unsupported-operation]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:289:32
+ERROR Object of class `object` has no attribute `get_span_context` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:291:5
+ERROR Object of class `object` has no attribute `NonRecordingSpan` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:306:5
+ERROR Object of class `object` has no attribute `set_span_in_context` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:307:5
+ERROR Object of class `object` has no attribute `get_span_context` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:313:5
+ERROR Object of class `object` has no attribute `exception` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:329:5
+ERROR Object of class `object` has no attribute `force_flush` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:395:5
+ERROR Object of class `object` has no attribute `shutdown` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:396:5
+ERROR Object of class `object` has no attribute `shutdown` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:397:5
+ERROR Object of class `NoneType` has no attribute `shutdown` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:409:5
+ERROR Object of class `object` has no attribute `debug` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:413:5
+ERROR Object of class `object` has no attribute `debug` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:417:5
+ERROR Object of class `object` has no attribute `exception` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:455:5
+ERROR Object of class `object` has no attribute `get_span_context` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:461:5
+ERROR Object of class `object` has no attribute `set_attributes` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:477:16
+ERROR Argument `dict[str, int | object]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `core.ops.tencent_trace.client.TencentTraceClient.record_llm_duration` [bad-argument-type]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:489:37
+ERROR Argument `dict[str, bool | object]` is not assignable to parameter `attributes` with type `dict[str, str] | None` in function `core.ops.tencent_trace.client.TencentTraceClient.record_trace_duration` [bad-argument-type]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:500:39
+ERROR Object of class `object` has no attribute `debug` [missing-attribute]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:525:5
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:536:12
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:547:12
+ERROR Cannot index into `object` [bad-index]
+   --> tests/unit_tests/core/ops/tencent_trace/test_client.py:558:12
 ERROR Method `trace` inherited from class `BaseTraceInstance` has no implementation and cannot be accessed via `super()` [missing-attribute]
   --> tests/unit_tests/core/ops/test_base_trace_instance.py:17:9
+ERROR Missing argument `public_key` in function `core.ops.entities.config_entity.LangfuseConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:140:27
+ERROR Missing argument `secret_key` in function `core.ops.entities.config_entity.LangfuseConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:140:27
+ERROR Missing argument `secret_key` in function `core.ops.entities.config_entity.LangfuseConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:143:27
+ERROR Missing argument `public_key` in function `core.ops.entities.config_entity.LangfuseConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:146:27
+ERROR Missing argument `api_key` in function `core.ops.entities.config_entity.LangSmithConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:172:28
+ERROR Missing argument `project` in function `core.ops.entities.config_entity.LangSmithConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:172:28
+ERROR Missing argument `project` in function `core.ops.entities.config_entity.LangSmithConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:175:28
+ERROR Missing argument `api_key` in function `core.ops.entities.config_entity.LangSmithConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:178:28
+ERROR Missing argument `api_key` in function `core.ops.entities.config_entity.WeaveConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:259:24
+ERROR Missing argument `project` in function `core.ops.entities.config_entity.WeaveConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:259:24
+ERROR Missing argument `project` in function `core.ops.entities.config_entity.WeaveConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:262:24
+ERROR Missing argument `api_key` in function `core.ops.entities.config_entity.WeaveConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:265:24
+ERROR Missing argument `license_key` in function `core.ops.entities.config_entity.AliyunConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:311:25
+ERROR Missing argument `endpoint` in function `core.ops.entities.config_entity.AliyunConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:311:25
+ERROR Missing argument `endpoint` in function `core.ops.entities.config_entity.AliyunConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:314:25
+ERROR Missing argument `license_key` in function `core.ops.entities.config_entity.AliyunConfig.__init__` [missing-argument]
+   --> tests/unit_tests/core/ops/test_config_entity.py:317:25
+ERROR Argument `Literal['invalid']` is not assignable to parameter `time_to_first_token` with type `float | int | None` in function `core.ops.langfuse_trace.langfuse_trace.LangFuseDataTrace._get_completion_start_time` [bad-argument-type]
+   --> tests/unit_tests/core/ops/test_langfuse_trace.py:136:61
+ERROR Object of class `FunctionType` has no attribute `called` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:157:16
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:164:28
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:171:28
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:179:24
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:186:28
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:193:28
+ERROR Object of class `FunctionType` has no attribute `call_count` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:216:16
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:217:28
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:242:28
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:285:24
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:294:28
+ERROR Object of class `FunctionType` has no attribute `call_args_list` [missing-attribute]
+   --> tests/unit_tests/core/ops/test_opik_trace.py:328:28
 ERROR `None` is not subscriptable [unsupported-operation]
    --> tests/unit_tests/core/ops/test_ops_trace_manager.py:316:12
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-17 10:57:19.605524053 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-17 10:57:08.608377936 +0000
@@ -1,7 +1,7 @@
 ERROR Object of class `Server` has no attribute `app` [missing-attribute]
    --> app_factory.py:132:5
 ERROR Object of class `App` has no attribute `access_mode` [missing-attribute]
-   --> controllers/console/app/app.py:552:13
+   --> controllers/console/app/app.py:553:13
 ERROR Object of class `object` has no attribute `value` [missing-attribute]
   --> controllers/console/app/conversation_variables.py:48:24
 ERROR Argument `str | None` is not assignable to parameter `language` with type `str` in function `services.account_service.AccountService.send_email_register_email` [bad-argument-type]
@@ -879,7 +879,7 @@
 ERROR `dict[str, str | None]` is not assignable to attribute `env` with type `dict[str, str]` [bad-assignment]
    --> tests/test_containers_integration_tests/conftest.py:204:39
 ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
-   --> tests/test_containers_integration_tests/controllers/console/app/test_app_apis.py:633:51
+   --> tests/test_containers_integration_tests/controllers/console/app/test_app_apis.py:662:51
 ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
    --> tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py:196:9
 ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
@@ -1259,51 +1259,51 @@
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
    --> tests/test_containers_integration_tests/services/test_app_service.py:652:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:711:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:713:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:771:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:773:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:831:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:833:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:882:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:884:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:895:70
+   --> tests/test_containers_integration_tests/services/test_app_service.py:897:70
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:934:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:936:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:957:70
+   --> tests/test_containers_integration_tests/services/test_app_service.py:959:70
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-   --> tests/test_containers_integration_tests/services/test_app_service.py:994:38
+   --> tests/test_containers_integration_tests/services/test_app_service.py:996:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1033:38
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1035:38
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1073:38
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1075:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `value` with type `AppStatus | SQLCoreOperations[AppStatus]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1080:23
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1082:23
 ERROR Argument `Literal['uuid']` is not assignable to parameter `value` with type `CustomizeTokenStrategy | SQLCoreOperations[CustomizeTokenStrategy]` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1082:41
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1084:41
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1126:36
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1128:36
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1158:13
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1160:13
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1173:13
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1175:13
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1188:13
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1190:13
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1204:13
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1206:13
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1220:68
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1222:68
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1228:68
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1230:68
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1236:68
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1238:68
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1244:68
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1246:68
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `services.app_service.AppService.get_app_meta` [bad-argument-type]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1280:41
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1282:41
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `services.app_service.AppService.get_app_meta` [bad-argument-type]
-    --> tests/test_containers_integration_tests/services/test_app_service.py:1294:41
+    --> tests/test_containers_integration_tests/services/test_app_service.py:1296:41
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/services/test_conversation_service.py:43:18
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

api.model to BaseModel

2 participants