Skip to content

Limit match range to end of last statement#4552

Merged
youknowone merged 1 commit into
RustPython:mainfrom
astral-sh:charlie/loc
Feb 22, 2023
Merged

Limit match range to end of last statement#4552
youknowone merged 1 commit into
RustPython:mainfrom
astral-sh:charlie/loc

Conversation

@charliermarsh

Copy link
Copy Markdown
Collaborator

Similar to other compound statements, this PR ends the match statement at the end of the last statement within the body.

@charliermarsh

Copy link
Copy Markdown
Collaborator Author

Fixes this issue in Ruff: astral-sh/ruff#3126

@youknowone youknowone merged commit edf5995 into RustPython:main Feb 22, 2023
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