Improve Python comments filtering#96
Conversation
|
Claude Review LGTM — nothing blocking found. Checked and confirmed clean:
One informational limitation, not a blocker: since Python 3.12 (PEP 701), a multi-line f-string can contain real message = f"""
Total: {
compute_total(items) # real comment
}
"""The filter treats the whole triple-quoted region as opaque text, so such a comment is kept instead of stripped. The failure direction is safe — extra text survives, string content is never corrupted, and the block still closes at the right delimiter — and handling it would require f-string-aware interpolation lexing (as done for C#). Fine to leave as a documented limitation until someone actually hits it. |
Oleg-Melnik
left a comment
There was a problem hiding this comment.
@Vladyslav-Kuksiuk LGTM with comment from Claude.
Resolved in the following PR. |
This PR improves Python comments filtering.
Resolves this issue.