allow-base

This commit is contained in:
2023-01-31 10:36:54 +03:00
parent 0da0313435
commit b9b7d330d2
5 changed files with 3 additions and 5 deletions

View File

@@ -28,7 +28,9 @@ class Base(declarative_base()):
__tablename__: str
__new__: Callable
__init__: Callable
# qualify the base with __allow_unmapped__. Can also be
# applied to classes directly if preferred
__allow_unmapped__ = True
__abstract__: bool = True
__table_args__ = {"extend_existing": True}
id: int = Column(Integer, primary_key=True)