Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading