Add 'type: ignore' for mypy

This commit is contained in:
Edward Betts 2023-11-25 19:57:47 +00:00
parent 52f7877bb8
commit 99db7df7f1

View file

@ -90,7 +90,8 @@ def global_user() -> None:
def index() -> str | Response:
"""Index page."""
if "oauth_verifier" in flask.request.args and "oauth_token" in flask.request.args:
return flask.redirect(flask.url_for("oauth_callback", **flask.request.args))
url = flask.url_for("oauth_callback", **flask.request.args) # type: ignore
return flask.redirect(url)
examples = load_examples()
examples.sort(