Skip to content

Commit

Permalink
馃悰 Fix unmoved import (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
dukkee committed Feb 7, 2022
1 parent 4ab0452 commit 5f7b9e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pydantic_i18n/loaders.py
Expand Up @@ -2,8 +2,6 @@
import os
from typing import Dict, Mapping, Sequence

from babel.support import Translations # type: ignore

__all__ = (
"BaseLoader",
"BabelLoader",
Expand Down Expand Up @@ -70,6 +68,7 @@ class BabelLoader(BaseLoader):
def __init__(self, translations_directory: str):
try:
from babel import Locale # type: ignore
from babel.support import Translations # type: ignore
except ImportError as e: # pragma: no cover
raise ImportError(
"babel not installed, you cannot use this loader.\n"
Expand Down

0 comments on commit 5f7b9e9

Please sign in to comment.