Skip to content

refactor: add missing @override decorator to AppGenerateResponseConverter subclasses - #36486

Merged
asukaminato0721 merged 1 commit into
langgenius:mainfrom
AlsoTheZv3n:refactor/add-missing-override-decorator
May 21, 2026
Merged

asukaminato0721 merged 1 commit into
langgenius:mainfrom
AlsoTheZv3n:refactor/add-missing-override-decorator

Conversation

@AlsoTheZv3n

Copy link
Copy Markdown
Contributor

Relates to #36406.

Adds @override (PEP 698, from typing import override) to the 4 abstract method implementations in each of the 5 AppGenerateResponseConverter subclasses:

  • convert_blocking_full_response
  • convert_blocking_simple_response
  • convert_stream_full_response
  • convert_stream_simple_response

Pattern follows the merged example in #36425.

…rter subclasses

Relates to langgenius#36406. Adds @OverRide to the 4 abstract methods in each of the
5 AppGenerateResponseConverter subclasses (advanced_chat, agent_chat, chat,
completion, workflow). Uses 'from typing import override' (Python 3.12+
stdlib) per the pattern established in langgenius#36425.
@AlsoTheZv3n
AlsoTheZv3n requested a review from QuantumGhost as a code owner May 21, 2026 13:12
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. refactor labels May 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 44.55% 44.55% 0.00%
Strict coverage 44.07% 44.07% 0.00%
Typed symbols 22,881 22,881 0
Untyped symbols 28,794 28,794 0
Modules 2613 2613 0

@asukaminato0721
asukaminato0721 enabled auto-merge May 21, 2026 14:00
@asukaminato0721
asukaminato0721 added this pull request to the merge queue May 21, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 21, 2026
Merged via the queue into langgenius:main with commit c50d504 May 21, 2026
27 checks passed
Ssazurov pushed a commit to Ssazurov/dify that referenced this pull request Aug 8, 2026
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 refactor size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants