We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9c02b commit 8ee3b56Copy full SHA for 8ee3b56
lib/galaxy/util/compression_utils.py
@@ -17,6 +17,7 @@
17
Optional,
18
overload,
19
Tuple,
20
+ TYPE_CHECKING,
21
Union,
22
)
23
@@ -31,10 +32,13 @@
31
32
is_gzip,
33
34
-try:
35
+if TYPE_CHECKING:
36
from isal import isal_zlib
-except ImportError:
37
- isal_zlib = None # type: ignore[assignment]
+else:
38
+ try:
39
+ from isal import isal_zlib
40
+ except ImportError:
41
+ isal_zlib = None
42
43
44
log = logging.getLogger(__name__)
0 commit comments