From: Alc-Alc <45509143+Alc-Alc@users.noreply.github.com> Date: Sat, 17 Jun 2023 09:59:48 +0000 (+0530) Subject: fix typo: `async_attrs` to `awaitable_attrs` (#9961) X-Git-Tag: rel_2_0_17~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c3dbf39ec2d72ea70c0f74fa2e6dc537e76700b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix typo: `async_attrs` to `awaitable_attrs` (#9961) Co-authored-by: Alc --- diff --git a/lib/sqlalchemy/ext/asyncio/session.py b/lib/sqlalchemy/ext/asyncio/session.py index 72a98f576b..6cab56baa9 100644 --- a/lib/sqlalchemy/ext/asyncio/session.py +++ b/lib/sqlalchemy/ext/asyncio/session.py @@ -121,9 +121,9 @@ class AsyncAttrs: a1 = (await async_session.scalars(select(A).where(A.id == 5))).one() - # use the lazy loader on ``a1.bs`` via the ``.async_attrs`` + # use the lazy loader on ``a1.bs`` via the ``.awaitable_attrs`` # interface, so that it may be awaited - for b1 in await a1.async_attrs.bs: + for b1 in await a1.awaitable_attrs.bs: print(b1) The :attr:`_asyncio.AsyncAttrs.awaitable_attrs` performs a call against the @@ -160,8 +160,8 @@ class AsyncAttrs: a1 = (await async_session.scalars(select(A).where(A.id == 5))).one() - some_attribute = await a1.async_attrs.some_deferred_attribute - some_collection = await a1.async_attrs.some_collection + some_attribute = await a1.awaitable_attrs.some_deferred_attribute + some_collection = await a1.awaitable_attrs.some_collection """ # noqa: E501