Skip to content

Commit df108f2

Browse files
authored
Add sync_session_class to the stubs (#167)
This is for after sqlalchemy/sqlalchemy#6689 is closed
1 parent c29e57c commit df108f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sqlalchemy-stubs/ext/asyncio/session.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,14 @@ class AsyncSession(
183183
dispatch: Any = ...
184184
binds: Any = ...
185185
sync_session: Session = ...
186+
sync_session_class: Type[Session] = ...
186187
def __init__(
187188
self,
188189
bind: Optional[Union[AsyncConnection, AsyncEngine]] = ...,
189190
binds: Optional[
190191
Mapping[object, Union[AsyncConnection, AsyncEngine]]
191192
] = ...,
193+
sync_session_class: Type[Session] = ...,
192194
**kw: Any,
193195
) -> None: ...
194196
async def run_sync(

0 commit comments

Comments
 (0)