diff --git a/.coverage.Vlads-MacBook-Pro.local.24340.835500 b/.coverage.Vlads-MacBook-Pro.local.24340.835500 new file mode 100644 index 00000000..fa1a1320 Binary files /dev/null and b/.coverage.Vlads-MacBook-Pro.local.24340.835500 differ diff --git a/lnbits/core/helpers.py b/lnbits/core/helpers.py index 2b029e45..7d5c2920 100644 --- a/lnbits/core/helpers.py +++ b/lnbits/core/helpers.py @@ -1,8 +1,10 @@ import importlib import re +from typing import Any from loguru import logger +from lnbits.db import Connection from lnbits.extension_manager import Extension from . import db as core_db @@ -23,7 +25,7 @@ async def migrate_extension_database(ext: Extension, current_version): await run_migration(ext_conn, ext_migrations, current_version) -async def run_migration(db, migrations_module, current_version): +async def run_migration(db: Connection, migrations_module: Any, current_version: int): matcher = re.compile(r"^m(\d\d\d)_") db_name = migrations_module.__name__.split(".")[-2] for key, migrate in migrations_module.__dict__.items():