example add more type check (#24999)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
5aa8c9c8df
commit
a418c43d32
2 changed files with 12 additions and 4 deletions
|
|
@ -1,7 +1,15 @@
|
|||
from sqlalchemy.orm import DeclarativeBase
|
||||
from sqlalchemy.orm import DeclarativeBase, MappedAsDataclass
|
||||
|
||||
from models.engine import metadata
|
||||
|
||||
|
||||
class Base(DeclarativeBase):
|
||||
metadata = metadata
|
||||
|
||||
|
||||
class TypeBase(MappedAsDataclass, DeclarativeBase):
|
||||
"""
|
||||
This is for adding type, after all finished, rename to Base.
|
||||
"""
|
||||
|
||||
metadata = metadata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue