From c47753c0fa3d4679376e3e564509f539a5187afa Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 1 Aug 2019 20:01:40 +0200 Subject: [PATCH] Fix Mypy issue --- blueprints/well_known.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/blueprints/well_known.py b/blueprints/well_known.py index e8409a8..ec32eee 100644 --- a/blueprints/well_known.py +++ b/blueprints/well_known.py @@ -1,5 +1,6 @@ import json import mimetypes +from typing import Any import flask from flask import Response @@ -16,7 +17,7 @@ blueprint = flask.Blueprint("well_known", __name__) @blueprint.route("/.well-known/webfinger") -def wellknown_webfinger() -> _Response: +def wellknown_webfinger() -> Any: """Exposes/servers WebFinger data.""" resource = request.args.get("resource") if resource not in [f"acct:{config.USERNAME}@{config.DOMAIN}", config.ID]: @@ -52,7 +53,7 @@ def wellknown_webfinger() -> _Response: @blueprint.route("/.well-known/nodeinfo") -def wellknown_nodeinfo() -> _Response: +def wellknown_nodeinfo() -> Any: """Exposes the NodeInfo endpoint (http://nodeinfo.diaspora.software/).""" return flask.jsonify( links=[ @@ -65,7 +66,7 @@ def wellknown_nodeinfo() -> _Response: @blueprint.route("/nodeinfo") -def nodeinfo() -> _Response: +def nodeinfo() -> Any: """NodeInfo endpoint.""" q = { "box": Box.OUTBOX.value,