diff --git a/sqlalchemy-stubs/ext/asyncio/session.pyi b/sqlalchemy-stubs/ext/asyncio/session.pyi index 6eaec8c..90a0cd2 100644 --- a/sqlalchemy-stubs/ext/asyncio/session.pyi +++ b/sqlalchemy-stubs/ext/asyncio/session.pyi @@ -135,13 +135,13 @@ class _AsyncSessionProtocol( async def scalars( self, statement: Executable, - parameters: Optional[_ExecuteParams] = ..., + params: Optional[_ExecuteParams] = ..., execution_options: Optional[_ExecuteOptions] = ..., ) -> ScalarResult: ... async def stream_scalars( self, statement: Executable, - parameters: Optional[_ExecuteParams] = ..., + params: Optional[_ExecuteParams] = ..., execution_options: Optional[_ExecuteOptions] = ..., ) -> AsyncScalarResult: ... async def delete(self, instance: Any) -> None: ... @@ -211,13 +211,13 @@ class _AsyncSessionTypingCommon( async def scalars( self, statement: Executable, - parameters: Optional[_ExecuteParams] = ..., + params: Optional[_ExecuteParams] = ..., execution_options: Optional[_ExecuteOptions] = ..., ) -> ScalarResult: ... async def stream_scalars( self, statement: Executable, - parameters: Optional[_ExecuteParams] = ..., + params: Optional[_ExecuteParams] = ..., execution_options: Optional[_ExecuteOptions] = ..., ) -> AsyncScalarResult: ... @classmethod diff --git a/test/files/async_stuff.py b/test/files/async_stuff.py index e956953..028bc1e 100644 --- a/test/files/async_stuff.py +++ b/test/files/async_stuff.py @@ -15,13 +15,13 @@ async def go() -> None: - r = await async_session.scalars(text("select 1")) + r = await async_session.scalars(text("select 1"), params=[]) r.first() - sr = await async_session.stream_scalars(text("select 1")) + sr = await async_session.stream_scalars(text("select 1"), params=[]) await sr.all() - r = await as_session.scalars(text("select 1")) + r = await as_session.scalars(text("select 1"), params=[]) r.first() - sr = await as_session.stream_scalars(text("select 1")) + sr = await as_session.stream_scalars(text("select 1"), params=[]) await sr.all() async with engine.connect() as conn: