File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11from typing import Mapping , MutableMapping , Union
22
3- from pydantic import BaseModel
3+ from pydantic import BaseModel , ConfigDict
44from sqlalchemy import MetaData , create_engine
55from sqlalchemy .engine import Engine
66from sqlalchemy .ext .asyncio import (
@@ -36,8 +36,7 @@ class SQLAlchemyBind(BaseModel):
3636 registry_mapper : registry
3737 session_class : sessionmaker [Session ]
3838
39- class Config :
40- arbitrary_types_allowed = True
39+ model_config = ConfigDict (arbitrary_types_allowed = True )
4140
4241
4342class SQLAlchemyAsyncBind (BaseModel ):
@@ -46,8 +45,7 @@ class SQLAlchemyAsyncBind(BaseModel):
4645 registry_mapper : registry
4746 session_class : async_sessionmaker [AsyncSession ]
4847
49- class Config :
50- arbitrary_types_allowed = True
48+ model_config = ConfigDict (arbitrary_types_allowed = True )
5149
5250
5351_SQLAlchemyConfig = Union [
You can’t perform that action at this time.
0 commit comments