Skip to content

Commit 88464f6

Browse files
Unused import (#598)
* Unused import * Re-enable F401
1 parent 3da098b commit 88464f6

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

numcodecs/__init__.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: E402,F401
1+
# ruff: noqa: E402
22
"""Numcodecs is a Python package providing buffer compression and
33
transformation codecs for use in data storage and communication
44
applications. These include:
@@ -21,8 +21,9 @@
2121
import multiprocessing
2222
from contextlib import suppress
2323

24-
from numcodecs.registry import get_codec, register_codec
25-
from numcodecs.version import version as __version__
24+
from numcodecs.registry import get_codec as get_codec
25+
from numcodecs.registry import register_codec
26+
from numcodecs.version import version as __version__ # noqa: F401
2627
from numcodecs.zlib import Zlib
2728

2829
register_codec(Zlib)
@@ -55,13 +56,13 @@
5556
atexit.register(blosc.destroy)
5657

5758
with suppress(ImportError):
58-
from numcodecs import zstd
59+
from numcodecs import zstd as zstd
5960
from numcodecs.zstd import Zstd
6061

6162
register_codec(Zstd)
6263

6364
with suppress(ImportError):
64-
from numcodecs import lz4
65+
from numcodecs import lz4 as lz4
6566
from numcodecs.lz4 import LZ4
6667

6768
register_codec(LZ4)
@@ -127,7 +128,7 @@
127128
register_codec(JSON)
128129

129130
with suppress(ImportError):
130-
from numcodecs import vlen
131+
from numcodecs import vlen as vlen
131132
from numcodecs.vlen import VLenArray, VLenBytes, VLenUTF8
132133

133134
register_codec(VLenUTF8)

numcodecs/compat.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# ruff: noqa: F401
21
import array
32
import codecs
4-
import functools
53

64
import numpy as np
75

0 commit comments

Comments
 (0)