aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-06-02 00:38:23 -0700
committerBryan Newbold <bnewbold@archive.org>2021-06-02 00:38:23 -0700
commit86b29ed5fca70fc0c52443acf6a5ec1a398ed3f6 (patch)
tree2fd8ef76b96705ea412935053d8dc72e35e6b2a4
parent4cab24d2769caa054fd97558fc6188613b16fb0f (diff)
downloadfatcat-scholar-86b29ed5fca70fc0c52443acf6a5ec1a398ed3f6.tar.gz
fatcat-scholar-86b29ed5fca70fc0c52443acf6a5ec1a398ed3f6.zip
lint: ignore mypy on some template imports
-rw-r--r--fatcat_scholar/web.py4
1 files changed, 2 insertions, 2 deletions
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