Conversation
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 00:39:32.825358295 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 00:39:24.981401625 +0000
@@ -92,8 +92,14 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
+ERROR Cannot find module `core.workflow.enums` [missing-import]
+ --> core/ops/ops_trace_manager.py:649:9
+ERROR Returned type `WorkflowNodeTraceInfo | dict[Unknown, Unknown]` is not assignable to declared return type `DraftNodeExecutionTrace | dict[Unknown, Unknown]` [bad-return]
+ --> core/ops/ops_trace_manager.py:1388:20
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -507,6 +513,8 @@
--> dify_graph/nodes/variable_assigner/v2/node.py:224:24
ERROR Pyrefly detected conflicting types while breaking a dependency cycle: `(t: SegmentType) -> Segment` is not assignable to `str`. Adding explicit type annotations might possibly help. [bad-assignment]
--> dify_graph/variables/types.py:222:9
+ERROR Cannot find module `core.workflow.enums` [missing-import]
+ --> enterprise/telemetry/draft_trace.py:8:1
ERROR Object of class `MissingRouter` has no attribute `include_router` [missing-attribute]
--> extensions/ext_fastopenapi.py:39:5
ERROR Argument `Literal['running'] | Any` is not assignable to parameter `value` with type `SQLCoreOperations[WorkflowExecutionStatus] | WorkflowExecutionStatus` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
@@ -2024,6 +2032,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2610,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3103,20 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Could not import `CASE_ROUTING` from `core.telemetry.gateway` [missing-module-attribute]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:8:36
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Could not import `CASE_ROUTING` from `core.telemetry.gateway` [missing-module-attribute]
+ --> tests/unit_tests/enterprise/telemetry/test_gateway.py:10:5
+ERROR Could not import `CASE_TO_TRACE_TASK` from `core.telemetry.gateway` [missing-module-attribute]
+ --> tests/unit_tests/enterprise/telemetry/test_gateway.py:11:5
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances Dify's observability capabilities by integrating a dedicated OpenTelemetry framework for enterprise users. It provides a structured approach to collecting and exporting operational data, offering deep insights into application performance, resource consumption, and user interactions. The changes lay the groundwork for advanced monitoring and analytics, crucial for managing Dify in complex production environments, while maintaining a clear separation and optionality for community edition users. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 00:39:32.825358295 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 00:39:24.981401625 +0000
@@ -92,8 +92,14 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
+ERROR Cannot find module `core.workflow.enums` [missing-import]
+ --> core/ops/ops_trace_manager.py:649:9
+ERROR Returned type `WorkflowNodeTraceInfo | dict[Unknown, Unknown]` is not assignable to declared return type `DraftNodeExecutionTrace | dict[Unknown, Unknown]` [bad-return]
+ --> core/ops/ops_trace_manager.py:1388:20
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -507,6 +513,8 @@
--> dify_graph/nodes/variable_assigner/v2/node.py:224:24
ERROR Pyrefly detected conflicting types while breaking a dependency cycle: `(t: SegmentType) -> Segment` is not assignable to `str`. Adding explicit type annotations might possibly help. [bad-assignment]
--> dify_graph/variables/types.py:222:9
+ERROR Cannot find module `core.workflow.enums` [missing-import]
+ --> enterprise/telemetry/draft_trace.py:8:1
ERROR Object of class `MissingRouter` has no attribute `include_router` [missing-attribute]
--> extensions/ext_fastopenapi.py:39:5
ERROR Argument `Literal['running'] | Any` is not assignable to parameter `value` with type `SQLCoreOperations[WorkflowExecutionStatus] | WorkflowExecutionStatus` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
@@ -2024,6 +2032,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2610,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3103,20 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Could not import `CASE_ROUTING` from `core.telemetry.gateway` [missing-module-attribute]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:8:36
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Could not import `CASE_ROUTING` from `core.telemetry.gateway` [missing-module-attribute]
+ --> tests/unit_tests/enterprise/telemetry/test_gateway.py:10:5
+ERROR Could not import `CASE_TO_TRACE_TASK` from `core.telemetry.gateway` [missing-module-attribute]
+ --> tests/unit_tests/enterprise/telemetry/test_gateway.py:11:5
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive enterprise-grade telemetry system using OpenTelemetry, which is a significant and well-structured addition. The new system supports detailed tracing, metrics, and logging, with features like content gating for privacy, robust error handling, and offloading large payloads. I've identified a logical issue in the LLM credential lookup and a minor improvement for exception logging. Overall, this is a high-quality contribution.
There was a problem hiding this comment.
Pull request overview
Adds an Enterprise Edition OpenTelemetry (OTLP) telemetry pipeline (exporter + routing + handlers) and wires it into the existing ops trace/task flow and app lifecycle events.
Changes:
- Introduces a shared
core.telemetry.gatewayrouting layer that dispatches trace cases to the ops trace queue and metric/log cases to a newenterprise_telemetryCelery task. - Implements enterprise telemetry exporter, trace/log emitters, and metric/log handlers (with payload offloading + rehydration).
- Expands ops trace entities and manager logic to support additional trace types, cross-workflow parent context, and richer metadata.
Reviewed changes
Copilot reviewed 42 out of 44 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| api/tests/unit_tests/tasks/test_enterprise_telemetry_task.py | Adds unit tests for the enterprise telemetry Celery task behavior. |
| api/tests/unit_tests/enterprise/telemetry/test_metric_handler.py | Adds tests for metric/log handler routing, dedup, and rehydration behavior. |
| api/tests/unit_tests/enterprise/telemetry/test_gateway.py | Adds tests for gateway routing (trace vs metric/log) and payload sizing/offload. |
| api/tests/unit_tests/enterprise/telemetry/test_exporter.py | Adds tests for OTLP exporter config/header/TLS behavior. |
| api/tests/unit_tests/enterprise/telemetry/test_event_handlers.py | Adds tests for blinker handlers emitting gateway events. |
| api/tests/unit_tests/enterprise/telemetry/test_contracts.py | Adds tests for telemetry contracts and routing table completeness. |
| api/tests/unit_tests/enterprise/telemetry/init.py | Test package marker for enterprise telemetry tests. |
| api/tests/unit_tests/core/telemetry/test_gateway_integration.py | Adds integration-style tests for gateway exports and EE gating. |
| api/tests/unit_tests/core/telemetry/test_facade.py | Adds tests for the core.telemetry.emit() facade and EE-only filtering. |
| api/tests/unit_tests/core/ops/test_trace_queue_manager.py | Adds tests validating TraceQueueManager EE telemetry guard behavior. |
| api/tasks/ops_trace_task.py | Hooks enterprise trace export into ops trace processing and hardens cleanup. |
| api/tasks/enterprise_telemetry_task.py | New Celery task for processing enterprise metric/log envelopes. |
| api/extensions/otel/semconv/dify.py | Adds additional semantic convention attributes for Dify spans. |
| api/extensions/otel/parser/base.py | Adds EE content-gating helper and gates input/output span attributes. |
| api/extensions/otel/parser/init.py | Re-exports should_include_content() from parser base. |
| api/extensions/ext_otel.py | Adjusts OTLP gRPC exporter TLS autodetection and optional auth header injection. |
| api/extensions/ext_enterprise_telemetry.py | New Flask extension to initialize enterprise exporter and register handlers. |
| api/extensions/ext_celery.py | Conditionally imports the enterprise telemetry task into Celery. |
| api/events/feedback_event.py | Introduces a blinker signal for feedback creation. |
| api/events/app_event.py | Adds blinker signals for app deleted/updated. |
| api/enterprise/telemetry/telemetry_log.py | Adds structured JSON telemetry log emitter + trace/span id helpers. |
| api/enterprise/telemetry/metric_handler.py | Adds enterprise metric/log handler with dedup + rehydration + case routing. |
| api/enterprise/telemetry/id_generator.py | Adds correlation-based deterministic OTEL trace/span ID generator. |
| api/enterprise/telemetry/exporter.py | Adds dedicated enterprise OTLP exporter (trace + metrics) and factory. |
| api/enterprise/telemetry/event_handlers.py | Adds blinker handlers that emit gateway telemetry events. |
| api/enterprise/telemetry/entities/init.py | Defines enterprise telemetry enums and token metric label model. |
| api/enterprise/telemetry/enterprise_trace.py | Implements enterprise trace processing (slim spans + rich logs + metrics). |
| api/enterprise/telemetry/draft_trace.py | Adds helper to enqueue draft node execution traces via telemetry facade. |
| api/enterprise/telemetry/contracts.py | Adds telemetry case enums, routing model, and envelope contract. |
| api/enterprise/telemetry/README.md | Adds enterprise telemetry architecture and configuration docs. |
| api/enterprise/telemetry/DATA_DICTIONARY.md | Adds a comprehensive data dictionary for emitted telemetry. |
| api/dify_graph/nodes/tool/tool_node.py | Adds tool_name/credential_id into tool metadata for downstream telemetry. |
| api/core/telemetry/gateway.py | New centralized telemetry routing (trace enqueue vs metric/log celery). |
| api/core/telemetry/events.py | Adds telemetry event/context dataclasses. |
| api/core/telemetry/init.py | Adds a facade to emit telemetry events keyed by TraceTaskName. |
| api/core/ops/ops_trace_manager.py | Extends trace manager with EE telemetry gating, richer metadata, new trace types. |
| api/core/ops/entities/trace_entity.py | Adds new trace info models, resolved IDs/parent context helpers, new task names. |
| api/core/llm_generator/entities.py | Adds app_id to prompt generation payloads for tracing attribution. |
| api/core/app/apps/workflow/app_generator.py | Plumbs _parent_trace_context into workflow generator extras. |
| api/configs/enterprise/init.py | Adds enterprise telemetry configuration settings. |
| api/configs/app_config.py | Wires enterprise telemetry config into DifyConfig. |
| api/app_factory.py | Registers enterprise telemetry extension in app initialization. |
| api/README.md | Updates developer run instructions and documents enterprise_telemetry queue usage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 02:15:14.902226815 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 02:15:06.760245330 +0000
@@ -92,8 +92,16 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `PROMPT_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:666:39
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `COMPLETION_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:670:43
+ERROR Returned type `WorkflowNodeTraceInfo | dict[Unknown, Unknown]` is not assignable to declared return type `DraftNodeExecutionTrace | dict[Unknown, Unknown]` [bad-return]
+ --> core/ops/ops_trace_manager.py:1388:20
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2032,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2610,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3103,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 02:15:14.902226815 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 02:15:06.760245330 +0000
@@ -92,8 +92,16 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `PROMPT_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:666:39
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `COMPLETION_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:670:43
+ERROR Returned type `WorkflowNodeTraceInfo | dict[Unknown, Unknown]` is not assignable to declared return type `DraftNodeExecutionTrace | dict[Unknown, Unknown]` [bad-return]
+ --> core/ops/ops_trace_manager.py:1388:20
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2032,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2610,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3103,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 02:24:50.428671044 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 02:24:42.243637104 +0000
@@ -92,8 +92,16 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `PROMPT_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:666:39
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `COMPLETION_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:670:43
+ERROR Returned type `WorkflowNodeTraceInfo | dict[Unknown, Unknown]` is not assignable to declared return type `DraftNodeExecutionTrace | dict[Unknown, Unknown]` [bad-return]
+ --> core/ops/ops_trace_manager.py:1388:20
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2032,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2610,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3103,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 02:24:50.428671044 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 02:24:42.243637104 +0000
@@ -92,8 +92,16 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `PROMPT_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:666:39
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `COMPLETION_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:670:43
+ERROR Returned type `WorkflowNodeTraceInfo | dict[Unknown, Unknown]` is not assignable to declared return type `DraftNodeExecutionTrace | dict[Unknown, Unknown]` [bad-return]
+ --> core/ops/ops_trace_manager.py:1388:20
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2032,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2610,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3103,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 02:27:01.073829356 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 02:26:51.893779055 +0000
@@ -92,8 +92,16 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `PROMPT_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:666:39
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `COMPLETION_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:670:43
+ERROR Returned type `WorkflowNodeTraceInfo | dict[Unknown, Unknown]` is not assignable to declared return type `DraftNodeExecutionTrace | dict[Unknown, Unknown]` [bad-return]
+ --> core/ops/ops_trace_manager.py:1388:20
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2032,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2610,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3103,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 02:27:01.073829356 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 02:26:51.893779055 +0000
@@ -92,8 +92,16 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `PROMPT_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:666:39
+ERROR Class `WorkflowNodeExecutionMetadataKey` has no class attribute `COMPLETION_TOKENS` [missing-attribute]
+ --> core/ops/ops_trace_manager.py:670:43
+ERROR Returned type `WorkflowNodeTraceInfo | dict[Unknown, Unknown]` is not assignable to declared return type `DraftNodeExecutionTrace | dict[Unknown, Unknown]` [bad-return]
+ --> core/ops/ops_trace_manager.py:1388:20
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2032,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2610,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3103,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 42 out of 44 changed files in this pull request and generated 5 comments.
Comments suppressed due to low confidence (1)
api/core/ops/entities/trace_entity.py:25
isinstance()does not accept PEP604 unions (e.g.str | dict | list) as its second argument; this will raiseTypeErrorat runtime. Replace with a tuple of types:isinstance(v, (str, dict, list)).
def ensure_type(cls, v: str | dict[str, Any] | list[Any] | None) -> str | dict[str, Any] | list[Any] | None:
if v is None:
return None
if isinstance(v, str | dict | list):
return v
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 02:38:59.866824041 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 02:38:50.828981044 +0000
@@ -92,8 +92,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2026,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2604,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3097,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 02:38:59.866824041 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 02:38:50.828981044 +0000
@@ -92,8 +92,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2026,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2604,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3097,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 03:20:33.109940276 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 03:20:24.387928604 +0000
@@ -92,8 +92,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2026,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2604,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3097,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 03:20:33.109940276 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 03:20:24.387928604 +0000
@@ -92,8 +92,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2026,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2604,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3097,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 43 out of 46 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-09 03:36:09.532402683 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-09 03:36:01.514419553 +0000
@@ -92,8 +92,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:187:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1485:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Object of class `tuple` has no attribute `delta` [missing-attribute]
@@ -2024,6 +2026,14 @@
--> 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 Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:59:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:60:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:61:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:62:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:44:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -2594,6 +2604,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -3079,6 +3097,14 @@
--> tests/unit_tests/core/workflow/test_variable_pool.py:81:33
ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry.py:144:22
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
ERROR Argument `dict[str, bytes | str]` is not assignable to parameter `headers` with type `Headers | Mapping[bytes, bytes] | Mapping[str, str] | Sequence[tuple[bytes, bytes]] | Sequence[tuple[str, str]] | None` in function `httpx._models.Response.__init__` [bad-argument-type]
--> tests/unit_tests/factories/test_build_from_mapping.py:66:21
ERROR Argument `datetime` is not assignable to parameter `created_at` with type `Decimal | bool | bytes | float | int | str | None` in function `fields.file_fields.FileWithSignedUrl.__init__` [bad-argument-type]
|
…ites enqueue_draft_node_execution_trace was never called from production code. Add the call after saving in workflow_service and rag_pipeline (both single-step run paths).
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 04:05:06.577797488 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 04:04:55.381846370 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1452:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 04:05:06.577797488 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 04:04:55.381846370 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1452:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 04:19:57.015190305 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 04:19:46.073145845 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1452:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 04:19:57.015190305 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 04:19:46.073145845 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1452:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 05:30:07.197900785 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 05:29:55.758911337 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1452:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 05:30:07.197900785 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 05:29:55.758911337 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1452:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
- Fix workflow token count race: capture total_tokens in-memory at enqueue time to avoid stale DB read when the trace Celery task runs - Add prompt/completion token split from node outputs["usage"] and wire into WorkflowTraceInfo and dify.tokens.input/output counters - Fix workflow token split crash: PROMPT_TOKENS/COMPLETION_TOKENS enum members do not exist; rewrite to read from outputs["usage"] instead of execution_metadata - Reduce DB query cost: project only outputs column, consolidate into existing session - Fix moderation type: was hardcoded "unknown", now defaults to "input" - Widen token type guard to (int, float) to prevent silent undercounting
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 06:39:35.408532480 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 06:39:24.938263602 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1508:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 06:39:35.408532480 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 06:39:24.938263602 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1508:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 06:41:43.197502575 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 06:41:32.880464784 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1512:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
1 similar comment
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 06:41:43.197502575 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 06:41:32.880464784 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1512:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:312:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:386:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:466:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:470:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
-ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:478:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:486:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:495:12
ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:505:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:506:12
ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:516:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:517:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:581:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 07:37:57.805709084 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 07:37:46.195609883 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1512:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:315:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:389:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:473:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:481:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:482:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:489:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
-ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:508:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
-ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:519:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:520:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:584:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 07:38:04.721660613 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 07:37:53.249546856 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1512:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:315:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:389:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:473:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:481:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:482:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:489:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
-ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:508:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
-ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:519:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:520:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:584:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 07:37:57.805709084 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 07:37:46.195609883 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1512:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:315:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:389:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:473:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:481:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:482:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:489:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
-ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:508:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
-ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:519:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:520:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:584:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-27 07:38:04.721660613 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-27 07:37:53.249546856 +0000
@@ -60,8 +60,10 @@
--> core/ops/mlflow_trace/mlflow_trace.py:395: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:414:24
+ERROR Class member `OpsTraceProviderConfigMap.__getitem__` overrides parent class `UserDict` in an inconsistent manner [bad-param-name-override]
+ --> core/ops/ops_trace_manager.py:189:9
ERROR Object of class `dict` has no attribute `model_dump` [missing-attribute]
- --> core/ops/ops_trace_manager.py:990:32
+ --> core/ops/ops_trace_manager.py:1512:32
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `BaseModel | Generator[BaseModel | Mapping[Unknown, Unknown] | str] | Mapping[Unknown, Unknown]` [unsafe-overlap]
--> core/plugin/backwards_invocation/base.py:10:33
ERROR Runtime checkable protocol `Generator` has an unsafe overlap with type `Generator[LLMResultChunkWithStructuredOutput] | LLMResultWithStructuredOutput` [unsafe-overlap]
@@ -4322,35 +4324,43 @@
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:305:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:315:12
ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:379:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:389:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:452:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution` with type `WorkflowExecution | None` in function `core.ops.ops_trace_manager.TraceTask.__init__` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:459:69
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:469:69
ERROR Object of class `dict` has no attribute `workflow_run_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:462:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
ERROR Object of class `dict` has no attribute `workflow_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:463:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:473:12
ERROR Object of class `dict` has no attribute `flagged` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:471:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:481:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:472:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:482:12
ERROR Object of class `dict` has no attribute `message_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:479:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:489:12
ERROR Object of class `dict` has no attribute `documents` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:488:12
-ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:498:12
+ERROR Object of class `dict` has no attribute `tool_name` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:508:12
ERROR Object of class `dict` has no attribute `time_cost` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:499:12
-ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
--> tests/unit_tests/core/ops/test_ops_trace_manager.py:509:12
+ERROR Object of class `dict` has no attribute `outputs` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:519:12
ERROR Object of class `dict` has no attribute `tenant_id` [missing-attribute]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:510:12
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:520:12
ERROR Argument `list[test_trace_queue_manager_send_to_celery.DummyTask]` is not assignable to parameter `tasks` with type `list[TraceTask]` in function `core.ops.ops_trace_manager.TraceQueueManager.send_to_celery` [bad-argument-type]
- --> tests/unit_tests/core/ops/test_ops_trace_manager.py:574:28
+ --> tests/unit_tests/core/ops/test_ops_trace_manager.py:584:28
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:53:9
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:54:9
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:55:9
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/ops/test_trace_queue_manager.py:56:9
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:55:31
ERROR Argument `None` is not assignable to parameter `url` with type `str` in function `core.ops.utils.validate_url_with_path` [bad-argument-type]
@@ -5663,6 +5673,14 @@
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
ERROR Cannot index into `str` [bad-index]
--> tests/unit_tests/core/schemas/test_resolver.py:687:23
+ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:44:5
+ERROR Object of class `ModuleType` has no attribute `TraceTask` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:45:5
+ERROR Object of class `ModuleType` has no attribute `OpsTraceManager` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:46:5
+ERROR Object of class `ModuleType` has no attribute `trace_manager_queue` [missing-attribute]
+ --> tests/unit_tests/core/telemetry/test_facade.py:47:5
ERROR `dict[str, str]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
--> tests/unit_tests/core/test_trigger_debug_event_selectors.py:56:46
ERROR Object of class `BlobChunkMessage` has no attribute `text`
@@ -6666,6 +6684,20 @@
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:840:73
ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
--> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:863:68
+ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
+ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:120:30
+ERROR Missing argument `event_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:129:30
+ERROR Missing argument `payload` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
+ --> tests/unit_tests/enterprise/telemetry/test_contracts.py:138:30
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.increment_counter` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:582:71
+ERROR Argument `dict[str, str]` is not assignable to parameter `labels` with type `dict[str, AttributeValue]` in function `enterprise.telemetry.exporter.EnterpriseExporter.record_histogram` [bad-argument-type]
+ --> tests/unit_tests/enterprise/telemetry/test_exporter.py:615:85
+ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[AttributeError]]) [no-matching-overload]
+ --> tests/unit_tests/enterprise/telemetry/test_id_generator.py:45:27
ERROR Object of class `int` has no attribute `startswith` [missing-attribute]
--> tests/unit_tests/extensions/otel/test_celery_sqlcommenter.py:25:16
ERROR Cannot index into `object` [bad-index]
|
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com> Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Merge feat: enterprise otel exporter (#33138) into lts/1.13 Co-authored-by: Xiyuan Chen <52963600+GareArc@users.noreply.github.com> Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Important
Fixes #<issue number>.Summary
Screenshots
Checklist
make lintandmake type-check(backend) andcd web && npx lint-staged(frontend) to appease the lint gods