From 86b29ed5fca70fc0c52443acf6a5ec1a398ed3f6 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 2 Jun 2021 00:38:23 -0700 Subject: lint: ignore mypy on some template imports --- fatcat_scholar/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index 04a1e88..253d99c 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -267,8 +267,8 @@ def load_i18n_templates() -> Any: templates = Jinja2Templates( directory="fatcat_scholar/templates", extensions=["jinja2.ext.i18n"], ) - templates.env.install_gettext_translations(translations, newstyle=True) - templates.env.install_gettext_callables( + templates.env.install_gettext_translations(translations, newstyle=True) # type: ignore + templates.env.install_gettext_callables( # type: ignore locale_gettext(translations), locale_ngettext(translations), newstyle=True, ) # remove a lot of whitespace in HTML output with these configs -- cgit v1.2.3