From 3627f36a54298c487f7c6e4bf340b4843b91dc6b Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Tue, 21 Sep 2021 01:54:07 +0300 Subject: [PATCH] Fixed annotations --- aiogram/utils/__init__.py | 0 aiogram/utils/i18n/core.py | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 aiogram/utils/__init__.py diff --git a/aiogram/utils/__init__.py b/aiogram/utils/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/aiogram/utils/i18n/core.py b/aiogram/utils/i18n/core.py index e7af5b60..d234ffea 100644 --- a/aiogram/utils/i18n/core.py +++ b/aiogram/utils/i18n/core.py @@ -1,7 +1,6 @@ import gettext import os from contextvars import ContextVar -from os import PathLike from pathlib import Path from typing import Dict, Optional, Tuple, Union @@ -12,7 +11,7 @@ class I18n: def __init__( self, *, - path: Union[str, PathLike[str], Path], + path: Union[str, Path], locale: str = "en", domain: str = "messages", ) -> None: