mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed typehint
This commit is contained in:
parent
03d56b1f84
commit
f16c6213e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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!")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue