fix type return in declarative_base()

This commit is contained in:
Yusur 2025-08-23 14:43:28 +02:00
parent 1a9fa55dd8
commit f1f8131299

View file

@ -131,7 +131,7 @@ def bool_column(value: bool = False, nullable: bool = False, **kwargs):
return Column(Boolean, server_default=def_val, nullable=nullable, **kwargs)
def declarative_base(domain_name: str, master_secret: bytes, metadata: dict | None = None, **kwargs) -> DeclarativeBase:
def declarative_base(domain_name: str, master_secret: bytes, metadata: dict | None = None, **kwargs) -> type[DeclarativeBase]:
"""
Drop-in replacement for sqlalchemy.orm.declarative_base()
taking in account requirements for SIQ generation (i.e. domain name).