Skip to content

Commit 096574a

Browse files
authored
Add keyword arguments for AsyncSession.connection (#220)
In SQLAlchemy 1.4.24, `AsyncSession.connection` started accepting keyword arguments which would be passed through to the underlying connection https://github.com/sqlalchemy/sqlalchemy/blob/main/lib/sqlalchemy/ext/asyncio/session.py#L740-L755
1 parent e5a0041 commit 096574a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlalchemy-stubs/ext/asyncio/session.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class _AsyncSessionTypingCommon(
157157
def begin_nested(self, **kw: Any) -> AsyncSessionTransaction: ...
158158
async def close(self) -> None: ...
159159
async def commit(self) -> None: ...
160-
async def connection(self) -> AsyncConnection: ...
160+
async def connection(self, **kw: Any) -> AsyncConnection: ...
161161
async def delete(self, instance: Any) -> None: ...
162162
async def execute(
163163
self,

0 commit comments

Comments
 (0)