From fa282b96e057ef096e69ea5e5e0539f73b6b64d9 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 7 Oct 2021 14:37:03 +0300 Subject: [PATCH] create_app type hint --- app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 8f57d45..cc0fd04 100644 --- a/app/app.py +++ b/app/app.py @@ -9,7 +9,7 @@ from app.glob import get_config, get_manager frontend_dir = '../frontend/dist' -def create_app(): +def create_app() -> Flask: app = Flask(__name__, static_url_path='/', static_folder=frontend_dir, template_folder=frontend_dir) api = Api(app, '/api/v1/') add_api_resources(api)