create_app type hint

This commit is contained in:
Dmitry Belyaev 2021-10-07 14:37:03 +03:00
parent cf66a0d0d0
commit fa282b96e0
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -9,7 +9,7 @@ from app.glob import get_config, get_manager
frontend_dir = '../frontend/dist' 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) app = Flask(__name__, static_url_path='/', static_folder=frontend_dir, template_folder=frontend_dir)
api = Api(app, '/api/v1/') api = Api(app, '/api/v1/')
add_api_resources(api) add_api_resources(api)