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 424c45c commit 0cf6f2aCopy full SHA for 0cf6f2a
numcodecs/registry.py
@@ -2,13 +2,17 @@
2
applications to dynamically register and look-up codec classes."""
3
4
import logging
5
-from importlib.metadata import EntryPoints, entry_points
+from importlib.metadata import entry_points
6
+from typing import TYPE_CHECKING
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] = {}
-entries: dict[str, EntryPoints] = {}
15
+entries: dict[str, "EntryPoints"] = {}
16
17
18
def run_entrypoints():
0 commit comments