diff options
author | Federico Caselli <cfederico87@gmail.com> | 2022-07-31 11:56:07 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2022-07-31 11:56:07 +0200 |
commit | f8c4dba4e9f130c18ce00597c036bc26ae7abf90 (patch) | |
tree | 8c93965b1d9ba365522ca78435db027d73ed5e71 /lib/sqlalchemy/ext/asyncio/result.py | |
parent | 14bfbadfdf9260a1c40f63b31641b27fe9de12a0 (diff) | |
download | sqlalchemy-f8c4dba4e9f130c18ce00597c036bc26ae7abf90.tar.gz |
Update to flake8 5.
Change-Id: I5a241a70efba68bcea9819ddce6aebc25703e68d
Diffstat (limited to 'lib/sqlalchemy/ext/asyncio/result.py')
-rw-r--r-- | lib/sqlalchemy/ext/asyncio/result.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/sqlalchemy/ext/asyncio/result.py b/lib/sqlalchemy/ext/asyncio/result.py index 43f5fae81..8f1c07fd8 100644 --- a/lib/sqlalchemy/ext/asyncio/result.py +++ b/lib/sqlalchemy/ext/asyncio/result.py @@ -442,8 +442,8 @@ class AsyncResult(AsyncCommon[Row[_TP]]): return await greenlet_spawn(FrozenResult, self) def merge(self, *others: AsyncResult[_TP]) -> MergedResult[_TP]: - """Merge this :class:`_asyncio.AsyncResult` with other compatible result - objects. + """Merge this :class:`_asyncio.AsyncResult` with other compatible + result objects. The object returned is an instance of :class:`_engine.MergedResult`, which will be composed of iterators from the given result @@ -648,8 +648,8 @@ SelfAsyncMappingResult = TypeVar( class AsyncMappingResult(AsyncCommon[RowMapping]): - """A wrapper for a :class:`_asyncio.AsyncResult` that returns dictionary values - rather than :class:`_engine.Row` values. + """A wrapper for a :class:`_asyncio.AsyncResult` that returns dictionary + values rather than :class:`_engine.Row` values. The :class:`_asyncio.AsyncMappingResult` object is acquired by calling the :meth:`_asyncio.AsyncResult.mappings` method. @@ -974,7 +974,8 @@ class AsyncTupleResult(AsyncCommon[_R], util.TypingOnly): ... async def scalar(self) -> Any: - """Fetch the first column of the first row, and close the result set. + """Fetch the first column of the first row, and close the result + set. Returns None if there are no rows to fetch. |