mypy init
This commit is contained in:
+2
-3
@@ -65,9 +65,8 @@ def run_migrations_online() -> None:
|
||||
and associate a connection with the context.
|
||||
|
||||
"""
|
||||
if get_set_engine() is not None:
|
||||
connectable = get_set_engine()
|
||||
else:
|
||||
connectable = get_set_engine()
|
||||
if connectable is None:
|
||||
connectable = engine_from_config(
|
||||
config.get_section(config.config_ini_section, {}),
|
||||
prefix="sqlalchemy.",
|
||||
|
||||
Reference in New Issue
Block a user