FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

馃摑 Fix async example in `session.execute()` docstring & deprecation message by DanielLeviLucas 路 Pull Request #1643 路 fastapi/sqlmodel 路 GitHub

Repository navigation

馃摑 Fix async example in session.execute() docstring & deprecation message - #1643

Merged
svlandeg merged 3 commits into
fastapi:mainfrom
DanielLeviLucas:fix/async-example-in-execute
Feb 6, 2026
Merged

svlandeg merged 3 commits into
fastapi:mainfrom
DanielLeviLucas:fix/async-example-in-execute

Conversation

DanielLeviLucas commented Nov 11, 2025 •
edited by YuriiMotov
Loading

Copy link
Copy Markdown
Contributor

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

heroes = await session.execute(select(Hero)).scalars().all()

DanielLeviLucas changed the title Fix async example in session.execute() docstring & deprecation message 馃悰 Fix async example in session.execute() docstring & deprecation message Nov 11, 2025
DanielLeviLucas changed the title 馃悰 Fix async example in session.execute() docstring & deprecation message 馃摑 Fix async example in session.execute() docstring & deprecation message Nov 11, 2025
YuriiMotov added the bug Something isn't working label Nov 11, 2025

YuriiMotov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM!

@DanielLeviLucas, thanks!

YuriiMotov added docs Improvements or additions to documentation and removed bug Something isn't working labels Nov 11, 2025
svlandeg merged commit edcaa54 into fastapi:main Feb 6, 2026
25 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL