Skip to content

Commit af98f88

Browse files
committed
🧎‍♀️ Genuflect to the types.
1 parent b38307c commit af98f88

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

inflect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454

5555

5656
try:
57-
import importlib.metadata as importlib_metadata # type: ignore
57+
from importlib import metadata # type: ignore
5858
except ImportError:
59-
import importlib_metadata # type: ignore
59+
import importlib_metadata as metadata # type: ignore
6060

6161

6262
class UnknownClassicalModeError(Exception):
@@ -88,7 +88,7 @@ class BadGenderError(Exception):
8888

8989

9090
try:
91-
__version__ = importlib_metadata.version("inflect")
91+
__version__ = metadata.version("inflect") # type: ignore
9292
except Exception:
9393
__version__ = "unknown"
9494

0 commit comments

Comments
 (0)