mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
chore: update .gitignore and enhance docstrings across multiple files
- Added *.pyc and *.pyo to .gitignore to prevent compiled Python files from being tracked. - Improved docstrings in various modules, providing clearer descriptions of functions, parameters, and return values to enhance code readability and maintainability.
This commit is contained in:
@@ -61,6 +61,8 @@ def run_migrations_offline() -> None:
|
||||
Calls to context.execute() here emit the given string to the
|
||||
script output.
|
||||
|
||||
返回:
|
||||
- None
|
||||
"""
|
||||
url = alembic_config.get_main_option("sqlalchemy.url")
|
||||
# 确保URL不为None
|
||||
@@ -84,6 +86,8 @@ def run_migrations_online() -> None:
|
||||
In this scenario we need to create an Engine
|
||||
and associate a connection with the context.
|
||||
|
||||
返回:
|
||||
- None
|
||||
"""
|
||||
url = alembic_config.get_main_option("sqlalchemy.url")
|
||||
# 确保URL不为None
|
||||
|
||||
Reference in New Issue
Block a user