Derived from the flake8-simplify linter.
Fix is sometimes available.
What it does#
pass blocks that can be replaced with the
contextlib.suppress context manager.
Why is this bad?#
contextlib.suppress is more concise and directly communicates the
intent of the code: to suppress a given exception.
contextlib.suppress is slower than using
directly. For performance-critical code, consider retaining the