Add 'type: ignore' for mypy
This commit is contained in:
parent
52f7877bb8
commit
99db7df7f1
|
@ -90,7 +90,8 @@ def global_user() -> None:
|
||||||
def index() -> str | Response:
|
def index() -> str | Response:
|
||||||
"""Index page."""
|
"""Index page."""
|
||||||
if "oauth_verifier" in flask.request.args and "oauth_token" in flask.request.args:
|
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 = load_examples()
|
||||||
examples.sort(
|
examples.sort(
|
||||||
|
|
Loading…
Reference in a new issue