-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend PIE790
to ellipses
#8602
Comments
That would be reasonable. The other option is to implement a standalone rule for this, as in Pylint: #4726. The blocker we ran into there is that we have an existing rule from flake8-pyi ( I don't see a reason not to have |
PIE790
to ellipses
We would have to make sure |
@Skylion007 -- Confirmed, it does. |
…8641) ## Summary This PR extends `unnecessary-pass` (`PIE790`) to flag unnecessary ellipsis expressions in addition to `pass` statements. A `pass` is equivalent to a standalone `...`, so it feels correct to me that a single rule should cover both cases. When we look to v0.2.0, we should also consider deprecating `PYI013`, which flags ellipses only for classes. Closes #8602.
No description provided.
The text was updated successfully, but these errors were encountered: