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!")