Skip to content

ci: auto gen api doc and download link#35919

Merged
asukaminato0721 merged 15 commits into
langgenius:mainfrom
asukaminato0721:35831
May 9, 2026
Merged

ci: auto gen api doc and download link#35919
asukaminato0721 merged 15 commits into
langgenius:mainfrom
asukaminato0721:35831

Conversation

@asukaminato0721
Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

#35831

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and cd web && pnpm exec vp staged (frontend) to appease the lint gods

@asukaminato0721 asukaminato0721 marked this pull request as ready for review May 8, 2026 06:51
Copilot AI review requested due to automatic review settings May 8, 2026 06:51
@dosubot dosubot Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label May 8, 2026
@asukaminato0721 asukaminato0721 enabled auto-merge May 8, 2026 06:52
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 0.00% 41.40% +41.40%
Strict coverage 0.00% 40.92% +40.92%
Typed symbols 0 20,755 +20,755
Untyped symbols 0 29,721 +29,721
Modules 0 2541 +2,541

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 $defs into top-level Swagger definitions during 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 null values before writing JSON.
  • Add a Markdown generation script + CI workflow step, plus unit tests validating resolvable $refs and absence of nulls.

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.

Comment thread api/dev/generate_swagger_specs.py Outdated
Comment thread api/tests/unit_tests/commands/test_generate_swagger_specs.py
Comment thread api/dev/generate_swagger_specs.py
Comment thread api/dev/generate_swagger_specs.py
Comment thread .github/workflows/autofix.yml
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@asukaminato0721 asukaminato0721 requested a review from crazywoola May 8, 2026 09:01
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Pyrefly Diff

base → 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]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Pyrefly Diff

base → 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]

@asukaminato0721 asukaminato0721 added this pull request to the merge queue May 9, 2026
Merged via the queue into langgenius:main with commit 38a419d May 9, 2026
27 checks passed
@asukaminato0721 asukaminato0721 deleted the 35831 branch May 9, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants