diff --git a/application/extensions/init_config.py b/application/extensions/init_config.py index c3952dd98dc691cfe5cbc9f0e734bd6ace3cdae3..0e4f80f946386884a9d767f1259ac44b5b0107bc 100644 --- a/application/extensions/init_config.py +++ b/application/extensions/init_config.py @@ -7,25 +7,27 @@ # @Email : StudentCWZ@outlook.com # @Date : 2023/10/28 12:53 # @File : init_config.py -# @Description : flask-dynaconf extension +# @Description : Initializes the FlaskDynaconf extension for a Flask application. """ from flask import Flask - from dynaconf import FlaskDynaconf def init_config(app: Flask) -> None: """ - Initialize the dynaconf extension + Initializes the FlaskDynaconf extension for a Flask application. + + Args: + app (Flask): The Flask application. - :param app: flask.Flask application instance - :return: None + Returns: + None """ FlaskDynaconf( app=app, loaders=[ - "application.utils.loaders.consul_loader", - "application.utils.loaders.yaml_loader", + 'application.utils.loaders.consul_loader', + 'application.utils.loaders.yaml_loader', ], )