Skip to content

refactor: use match case for draft variable serialization#36716

Merged
asukaminato0721 merged 2 commits into
langgenius:mainfrom
zhuiguangzhe2003:refactor-match-case-isinstance
May 27, 2026
Merged

refactor: use match case for draft variable serialization#36716
asukaminato0721 merged 2 commits into
langgenius:mainfrom
zhuiguangzhe2003:refactor-match-case-isinstance

Conversation

@zhuiguangzhe2003
Copy link
Copy Markdown
Contributor

Summary

  • replace if isinstance / elif isinstance with match / case in draft variable serialization
  • keep behavior unchanged while aligning with the existing pattern matching style in the same module

Test

  • python -m compileall -q api/controllers/console/app/workflow_draft_variable.py

Related to #35902

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. refactor labels May 27, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 27, 2026
@asukaminato0721 asukaminato0721 enabled auto-merge May 27, 2026 09:19
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 45.75% 45.75% 0.00%
Strict coverage 45.27% 45.27% 0.00%
Typed symbols 24,445 24,445 0
Untyped symbols 29,295 29,295 0
Modules 2736 2736 0

@asukaminato0721 asukaminato0721 added this pull request to the merge queue May 27, 2026
Merged via the queue into langgenius:main with commit b2710b8 May 27, 2026
30 checks passed
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:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants