Skip to content

Commit

Permalink
Unused import (#598)
Browse files Browse the repository at this point in the history
* Unused import

* Re-enable F401
  • Loading branch information
DimitriPapadopoulos authored Oct 22, 2024
1 parent 3da098b commit 88464f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 7 additions & 6 deletions numcodecs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: E402,F401
# ruff: noqa: E402
"""Numcodecs is a Python package providing buffer compression and
transformation codecs for use in data storage and communication
applications. These include:
Expand All @@ -21,8 +21,9 @@
import multiprocessing
from contextlib import suppress

from numcodecs.registry import get_codec, register_codec
from numcodecs.version import version as __version__
from numcodecs.registry import get_codec as get_codec
from numcodecs.registry import register_codec
from numcodecs.version import version as __version__ # noqa: F401
from numcodecs.zlib import Zlib

register_codec(Zlib)
Expand Down Expand Up @@ -55,13 +56,13 @@
atexit.register(blosc.destroy)

with suppress(ImportError):
from numcodecs import zstd
from numcodecs import zstd as zstd
from numcodecs.zstd import Zstd

register_codec(Zstd)

with suppress(ImportError):
from numcodecs import lz4
from numcodecs import lz4 as lz4
from numcodecs.lz4 import LZ4

register_codec(LZ4)
Expand Down Expand Up @@ -127,7 +128,7 @@
register_codec(JSON)

with suppress(ImportError):
from numcodecs import vlen
from numcodecs import vlen as vlen
from numcodecs.vlen import VLenArray, VLenBytes, VLenUTF8

register_codec(VLenUTF8)
Expand Down
2 changes: 0 additions & 2 deletions numcodecs/compat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# ruff: noqa: F401
import array
import codecs
import functools

import numpy as np

Expand Down

0 comments on commit 88464f6

Please sign in to comment.