Fixed typehint

This commit is contained in:
Alex Root Junior 2022-06-25 17:57:39 +03:00
parent 03d56b1f84
commit f16c6213e1
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

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