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 6f6f0a9 commit 4e3fd65Copy full SHA for 4e3fd65
numcodecs/registry.py
@@ -2,14 +2,10 @@
2
applications to dynamically register and look-up codec classes."""
3
4
import logging
5
-from importlib.metadata import entry_points
6
-from typing import TYPE_CHECKING
+from importlib.metadata import EntryPoints, entry_points
7
8
from numcodecs.abc import Codec
9
10
-if TYPE_CHECKING:
11
- from importlib.metadata import EntryPoints
12
-
13
logger = logging.getLogger("numcodecs")
14
codec_registry: dict[str, Codec] = {}
15
entries: dict[str, "EntryPoints"] = {}
0 commit comments