From f16c6213e13bef5e50b6ca65c72c71626ded2d8a Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 25 Jun 2022 17:57:39 +0300 Subject: [PATCH] Fixed typehint --- aiogram/utils/i18n/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/utils/i18n/core.py b/aiogram/utils/i18n/core.py index 830ead54..db7c7979 100644 --- a/aiogram/utils/i18n/core.py +++ b/aiogram/utils/i18n/core.py @@ -68,7 +68,7 @@ class I18n(ContextInstanceMixin["I18n"]): if os.path.exists(mo_path): with open(mo_path, "rb") as fp: - translations[name] = gettext.GNUTranslations(fp) # type: ignore + translations[name] = gettext.GNUTranslations(fp) elif os.path.exists(mo_path[:-2] + "po"): # pragma: no cover raise RuntimeError(f"Found locale '{name}' but this language is not compiled!")