We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SIM105
B030
try: ... except ("not", "an", "exception"): pass
Detects the SIM105 and B030 violations. If the SIM105 fix is applied, then B030 is lost:
import contextlib with contextlib.suppress(Exception): print()
I think we should not autofix SIM105 here, similar to refurb.
refurb
Links:
(Thanks to @dosisod for flagging here)
The text was updated successfully, but these errors were encountered:
Closes astral-sh#5977
76d9896
Do not raise SIM105 for non-exceptions (#5985)
ed7d2b8
Closes #5977 Added a test case from `refurb`
Successfully merging a pull request may close this issue.
Detects the
SIM105
andB030
violations.If the
SIM105
fix is applied, thenB030
is lost:I think we should not autofix
SIM105
here, similar torefurb
.Links:
SIM105
implementationSIM105
test casesB030
implementation(Thanks to @dosisod for flagging here)
The text was updated successfully, but these errors were encountered: