Skip to content

Incorrect keyword argument name 'parameters' for AsyncSession.scalars, AsyncEngine.scalars #230

Closed
@mjpieters

Description

@mjpieters

The type hints for the AsyncSession.scalars() method uses the keyword argument parameters, but the actual argument is named params.

The same issue applies to AsyncSession.stream_scalars() and to the async_scoped_session proxies for these.

See:

async def scalars(
self,
statement: Executable,
parameters: Optional[_ExecuteParams] = ...,
execution_options: Optional[_ExecuteOptions] = ...,
) -> ScalarResult: ...
async def stream_scalars(
self,
statement: Executable,
parameters: Optional[_ExecuteParams] = ...,
execution_options: Optional[_ExecuteOptions] = ...,
) -> AsyncScalarResult: ...

async def scalars(
self,
statement: Executable,
parameters: Optional[_ExecuteParams] = ...,
execution_options: Optional[_ExecuteOptions] = ...,
) -> ScalarResult: ...
async def stream_scalars(
self,
statement: Executable,
parameters: Optional[_ExecuteParams] = ...,
execution_options: Optional[_ExecuteOptions] = ...,
) -> AsyncScalarResult: ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions