Improve Type for models.py
This commit is contained in:
parent
b62830031f
commit
829e10ff87
@ -2,6 +2,7 @@
|
|||||||
This module contains the class to persist trades into SQLite
|
This module contains the class to persist trades into SQLite
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
from typing import Any, Dict
|
||||||
|
|
||||||
from sqlalchemy import create_engine, inspect
|
from sqlalchemy import create_engine, inspect
|
||||||
from sqlalchemy.exc import NoSuchModuleError
|
from sqlalchemy.exc import NoSuchModuleError
|
||||||
@ -29,7 +30,7 @@ def init_db(db_url: str) -> None:
|
|||||||
:param db_url: Database to use
|
:param db_url: Database to use
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
kwargs = {}
|
kwargs: Dict[str, Any] = {}
|
||||||
|
|
||||||
if db_url == 'sqlite:///':
|
if db_url == 'sqlite:///':
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
|
Loading…
Reference in New Issue
Block a user