summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py
index c0d0e0c8..4c08649e 100644
--- a/python/fatcat_web/__init__.py
+++ b/python/fatcat_web/__init__.py
@@ -1,4 +1,5 @@
import sys
+from typing import Any
import elasticsearch
import fatcat_openapi_client
@@ -17,7 +18,10 @@ from raven.contrib.flask import Sentry
from fatcat_web.web_config import Config
toolbar = DebugToolbarExtension()
-app = Flask(__name__, static_url_path="/static")
+
+# TODO: annotating Flask object as Any because we insert fields (like log,
+# csrf). Should refactor to make this separate globals and not inject them
+app: Any = Flask(__name__, static_url_path="/static")
app.config.from_object(Config)
toolbar = DebugToolbarExtension(app)
FlaskUUID(app)