From eada417ccc4004af4ab91f30ffe741e8a81baac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=BA=E4=B9=8B?= <560397@gree.com.cn> Date: Tue, 21 Nov 2023 13:36:25 +0800 Subject: [PATCH] Update project --- application/extensions/__init__.py | 2 +- application/extensions/init_apispec.py | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/application/extensions/__init__.py b/application/extensions/__init__.py index 61acaf5..a0d712c 100644 --- a/application/extensions/__init__.py +++ b/application/extensions/__init__.py @@ -7,7 +7,7 @@ # @Email : StudentCWZ@outlook.com # @Date : 2023/10/28 12:50 # @File : __init__.py -# @Description : +# @Description : Initializes various plugins for a Flask application. """ diff --git a/application/extensions/init_apispec.py b/application/extensions/init_apispec.py index d6bb6f8..da1f9f8 100644 --- a/application/extensions/init_apispec.py +++ b/application/extensions/init_apispec.py @@ -7,21 +7,24 @@ # @Email : StudentCWZ@outlook.com # @Date : 2023/10/29 12:01 # @File : init_apispec.py -# @Description : +# @Description : Initializes the FlaskApiSpec extension for a Flask application. """ from flask import Flask from flask_apispec import FlaskApiSpec -# 初始化 flask-apispec +# Initialize FlaskApiSpec apispec = FlaskApiSpec() def init_apispec(app: Flask) -> None: """ - Initialize the ApiSpec extension + Initializes the FlaskApiSpec extension for a Flask application. - :param app: flask.Flask application instance - :return: None + Args: + app (Flask): The Flask application. + + Returns: + None """ apispec.init_app(app) -- GitLab