Skip to content

Stop comment indentation walks at the root - #250

Closed
yuefdev wants to merge 1 commit into
davidhalter:masterfrom
yuefdev:fix/comment-continuation-root-sol
Closed

yuefdev wants to merge 1 commit into
davidhalter:masterfrom
yuefdev:fix/comment-continuation-root-sol

Conversation

@yuefdev

@yuefdev yuefdev commented Oct 18, 2026

Copy link
Copy Markdown

Hi! I could still reproduce #219 on master. A comment after a line continuation can make the indentation walk run past its root and raise AttributeError.

Stop at the root, keeping the normal missing-final-newline diagnostic. Added the original reproducer as a regression.

All 1,990 tests pass on Linux, and the changed Python files pass flake8. The Windows suite reached 1,987 passes with two cache-path failures; the full Linux rerun passed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants