-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore end-of-line comments when dirtying if-with-same-arms branches (#…
…6031) ## Summary Closes #6025 (which contains a more thorough description of the issue). Previously, the `# noqa` here was being marked as unused, but removing it raised `SIM114`: ```python def foo(): a = True b = False if a > b: # noqa: SIM114 return 3 elif a == b: return 3 ```
- Loading branch information
1 parent
8eadacd
commit 6feb3fc
Showing
3 changed files
with
55 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters