Skip to content

Commit

Permalink
fix: default to importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed May 21, 2024
1 parent a549bc9 commit 224847d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion edsnlp/core/registries.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from weakref import WeakKeyDictionary

import catalogue
import importlib_metadata
import spacy
from confit import Config, Registry, RegistryCollection, set_default_registry
from confit.errors import ConfitValidationError, patch_errors
Expand All @@ -17,6 +16,11 @@
import edsnlp
from edsnlp.utils.collections import FrozenDict, FrozenList

try:
import importlib.metadata as importlib_metadata
except ImportError:
import importlib_metadata

PIPE_META = WeakKeyDictionary()


Expand Down

0 comments on commit 224847d

Please sign in to comment.