Added documentation to the bp, babel_js, csrf, and db variables in the test site.

This commit is contained in:
依瑪貓 2023-04-03 22:18:58 +08:00
parent a17395b43e
commit 3a0f0873e2

View File

@ -30,9 +30,13 @@ from flask_wtf import CSRFProtect
from sqlalchemy import Column from sqlalchemy import Column
bp: Blueprint = Blueprint("home", __name__) bp: Blueprint = Blueprint("home", __name__)
"""The global blueprint."""
babel_js: BabelJS = BabelJS() babel_js: BabelJS = BabelJS()
"""The Babel JavaScript instance."""
csrf: CSRFProtect = CSRFProtect() csrf: CSRFProtect = CSRFProtect()
"""The CSRF protector."""
db: SQLAlchemy = SQLAlchemy() db: SQLAlchemy = SQLAlchemy()
"""The database instance."""
def create_app(is_testing: bool = False) -> Flask: def create_app(is_testing: bool = False) -> Flask: