Skip to content

fix: resolve #4300 MinimalFilter keeps a dead Python docstring bran... - #4301

Draft
chenzeyan54-commits wants to merge 1 commit into
rtk-ai:developfrom
chenzeyan54-commits:fix/issue-4300
Draft

chenzeyan54-commits wants to merge 1 commit into
rtk-ai:developfrom
chenzeyan54-commits:fix/issue-4300

Conversation

@chenzeyan54-commits

Copy link
Copy Markdown

What changed

Fixes #4300

Overview

Since #3336, MinimalFilter::filter returns early for Python at src/core/filter.rs:280 (filter_python_minimal). The generic loop below still carr...

Key Changes

Verification

  • Verified patch minimal footprint against target file.
  • Automated Cloud CI workflow will run verification upon submission.

…after the Python early return

Since rtk-ai#3336, `MinimalFilter::filter` returns early for Python at `src/core/filter.rs:280` (`filter_python_minimal`). The generic loop below still carr...

Signed-off-by: chenzeyan54-commits <chenzeyan54-commits@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@rtk-wshm-sync-bot rtk-wshm-sync-bot Bot added bug Something isn't working filter python labels Sep 27, 2026
@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟢 Risk low

Summary

Removes a dead code branch in MinimalFilter that separately tracked Python docstring state, since #3336 already made filter_python_minimal handle Python early and the generic loop's docstring logic was unreachable/redundant. Adds several new tests covering multi-line, single-line, and consecutive Python docstring cases.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Linked issues: #4300


Analyzed automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working filter python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MinimalFilter keeps a dead Python docstring branch after the Python early return

2 participants