ci: auto gen api doc and download link#35919
Merged
Merged
Conversation
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 06:53:27.133470528 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 06:53:17.440420161 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Type Coverage
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 06:55:48.953446883 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 06:55:35.744302010 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR adds automated generation and validation of Swagger JSON + Markdown API docs, and improves schema registration/export so Swagger 2.0 references remain resolvable (including nested Pydantic $defs) while avoiding converter-breaking null values.
Changes:
- Promote nested Pydantic
$defsinto top-level Swaggerdefinitionsduring schema registration (and register enums consistently). - Enhance Swagger spec generation to (a) include registered-but-indirect models, (b) materialize inline nested RESTX field maps into named models, and (c) drop
nullvalues before writing JSON. - Add a Markdown generation script + CI workflow step, plus unit tests validating resolvable
$refs and absence ofnulls.
Reviewed changes
Copilot reviewed 12 out of 15 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
api/controllers/common/schema.py |
Centralizes schema registration while promoting nested $defs to Swagger definitions. |
api/dev/generate_swagger_specs.py |
Merges registered models into exported specs, materializes inline nested models, and removes nulls. |
api/dev/generate_swagger_markdown_docs.py |
New script to generate Swagger JSON and convert it to Markdown via swagger-markdown. |
.github/workflows/autofix.yml |
Adds CI step to regenerate Swagger JSON + Markdown docs when API changes are detected. |
api/tests/unit_tests/controllers/common/test_schema.py |
Adds coverage for nested Pydantic $defs promotion behavior. |
api/tests/unit_tests/commands/test_generate_swagger_specs.py |
Adds validation that generated specs have resolvable definition refs and no nulls. |
api/openapi/web-swagger.json |
Generated Swagger JSON output for the web API. |
api/openapi/markdown/web-swagger.md |
Generated Markdown docs for the web API. |
api/openapi/markdown/service-swagger.md |
Generated Markdown docs for the service API. |
api/controllers/console/app/generator.py |
Switches to shared schema/enum registration helpers. |
api/controllers/console/app/app_import.py |
Registers enum models in Swagger via shared helpers. |
api/controllers/console/admin.py |
Switches to shared schema registration helper for console admin payloads. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 06:58:20.436318161 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 06:58:07.835264560 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:00:49.602053278 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:00:37.655019673 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:08:55.864610834 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:08:44.317512245 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:11:29.535987001 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:11:17.568931790 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:14:04.070862319 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:13:51.561946972 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:16:28.292964347 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:16:15.846894304 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:33:09.518997315 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:32:57.762929874 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:35:38.386993659 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:35:26.374949311 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:38:02.249750703 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:37:51.019745017 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 07:40:18.828063519 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 07:40:11.369087941 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 08:11:18.058232882 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 08:11:04.014251728 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 08:13:38.550363966 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 08:13:27.278260644 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 08:44:46.566055096 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 08:44:34.029247463 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 08:47:12.910682853 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 08:46:58.756569470 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 11:33:30.567474515 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 11:33:18.535415185 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 11:35:54.467129515 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 11:35:42.693113735 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 11:51:40.893778653 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 11:51:28.793780211 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 11:54:52.537362647 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 11:54:40.471326280 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 13:18:42.404491094 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 13:18:33.454506721 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 16:16:56.725025446 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 16:16:49.961991762 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-08 16:19:25.780510375 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-08 16:19:13.302428450 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
WH-2099
approved these changes
May 9, 2026
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-09 02:54:31.775299380 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-09 02:54:22.900169904 +0000
@@ -74,8 +74,6 @@
--> core/tools/utils/web_reader_tool.py:66:35
ERROR `list[Never]` is not assignable to attribute `tools` with type `Never` [bad-assignment]
--> core/tools/workflow_as_tool/provider.py:238:26
-ERROR Object of class `Swagger` has no attribute `_anonymous_inline_models` [missing-attribute]
- --> dev/generate_swagger_specs.py:77:13
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.baggage.propagation.W3CBaggagePropagator.extract` [bad-argument-type]
--> enterprise/telemetry/exporter.py:54:42
ERROR Argument `dict[str, str]` is not assignable to parameter `carrier` with type `TypeVar[CarrierT]` in function `opentelemetry.trace.propagation.tracecontext.TraceContextTextMapPropagator.inject` [bad-argument-type]
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
#35831
Screenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods