code cleanup, mypy

This commit is contained in:
TuxCoder 2022-06-18 13:05:18 +02:00
parent 45c61a06ef
commit 927562fecb
7 changed files with 41 additions and 36 deletions

View file

@ -48,7 +48,7 @@ def init_babel(app: Flask) -> None:
@app.context_processor
def get_locale_jinja() -> dict:
def get_locale_() -> str:
return get_locale()
return get_locale() # type: ignore
return dict(get_locale=get_locale_)
return None