code cleanup, mypy
This commit is contained in:
parent
45c61a06ef
commit
927562fecb
7 changed files with 41 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue