mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-18 02:54:07 +02:00
Ruff enable type annotations rule (#362)
This PR enables the ruff rule for return type annotations (ANN), and adds the ty package for type checking.
This commit is contained in:
committed by
GitHub
parent
dd0b439bbe
commit
a39e0d204a
@@ -9,6 +9,8 @@ from sqlalchemy.engine import Engine
|
||||
from sqlalchemy.engine.url import URL
|
||||
from sqlalchemy.orm import Session, declarative_base, sessionmaker
|
||||
|
||||
from media_manager.database.config import DbConfig
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
Base = declarative_base()
|
||||
@@ -35,7 +37,7 @@ def build_db_url(
|
||||
|
||||
|
||||
def init_engine(
|
||||
db_config: Any | None = None,
|
||||
db_config: DbConfig | None = None,
|
||||
url: str | URL | None = None,
|
||||
) -> Engine:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user