Skip to content

Commit 1bc4ad5

Browse files
Ignore ruff/flake8-simplify rule SIM105
SIM105 Use `contextlib.suppress(ImportError)` instead of `try`-`except`-`pass`
1 parent 38c2592 commit 1bc4ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numcodecs/lzma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
try:
66
import lzma as _lzma
77
except ImportError: # pragma: no cover
8-
try:
8+
try: # noqa: SIM105
99
from backports import lzma as _lzma # type: ignore[no-redef]
1010
except ImportError:
1111
pass

0 commit comments

Comments
 (0)