Skip to content

remove duplicate syms.for_stmt entry - #5278

Merged
cobaltt7 merged 1 commit into
psf:docstring-typosfrom
TheGreatApollyon:remove-duplicate-for-stmt
Aug 4, 2026
Merged

remove duplicate syms.for_stmt entry#5278
cobaltt7 merged 1 commit into
psf:docstring-typosfrom
TheGreatApollyon:remove-duplicate-for-stmt

Conversation

@TheGreatApollyon

Copy link
Copy Markdown
Contributor

syms.for_stmt appears twice in the list of parent types where walrus-assignment parentheses are kept. The duplicate is harmless (set membership is unaffected) but serves no purpose; drop it to keep the list tidy.

Copilot AI review requested due to automatic review settings July 31, 2026 04:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a redundant duplicate entry in linegen.py where syms.for_stmt appeared twice in the parent-type allowlist used to preserve parentheses around walrus assignments. This is a small cleanup that keeps the logic unchanged while improving readability/maintainability.

Changes:

  • Remove the duplicate syms.for_stmt entry from the parent.type in [...] check inside maybe_make_parens_invisible_in_atom.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cobaltt7
cobaltt7 changed the base branch from main to docstring-typos August 4, 2026 03:39
@cobaltt7
cobaltt7 merged commit 816b97f into psf:docstring-typos Aug 4, 2026
2 checks 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.

3 participants