Skip to content

Conversation

@DanielLeviLucas
Copy link

@DanielLeviLucasDanielLeviLucas commented Nov 11, 2025

This PR fixes a mistake in docstring and deprecation message of AsyncSession.execute() (we should await execute method and only then call scalars):

heroes=awaitsession.execute(select(Hero)).scalars().all()

@DanielLeviLucasDanielLeviLucas changed the title Fix async example in session.execute() docstring & deprecation message🐛 Fix async example in session.execute() docstring & deprecation messageNov 11, 2025
@DanielLeviLucasDanielLeviLucas changed the title 🐛 Fix async example in session.execute() docstring & deprecation message📝 Fix async example in session.execute() docstring & deprecation messageNov 11, 2025
@YuriiMotovYuriiMotov added the bug Something isn't working label Nov 11, 2025
Copy link
Member

@YuriiMotovYuriiMotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@DanielLeviLucas, thanks!

@YuriiMotovYuriiMotov added docs Improvements or additions to documentation and removed bug Something isn't working labels Nov 11, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsImprovements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@DanielLeviLucas@YuriiMotov