summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2022-07-31 11:56:07 +0200
committerFederico Caselli <cfederico87@gmail.com>2022-07-31 11:56:07 +0200
commitf8c4dba4e9f130c18ce00597c036bc26ae7abf90 (patch)
tree8c93965b1d9ba365522ca78435db027d73ed5e71 /lib/sqlalchemy/engine
parent14bfbadfdf9260a1c40f63b31641b27fe9de12a0 (diff)
downloadsqlalchemy-f8c4dba4e9f130c18ce00597c036bc26ae7abf90.tar.gz
Update to flake8 5.
Change-Id: I5a241a70efba68bcea9819ddce6aebc25703e68d
Diffstat (limited to 'lib/sqlalchemy/engine')
-rw-r--r--lib/sqlalchemy/engine/cursor.py6
-rw-r--r--lib/sqlalchemy/engine/reflection.py3
-rw-r--r--lib/sqlalchemy/engine/result.py6
-rw-r--r--lib/sqlalchemy/engine/row.py3
4 files changed, 12 insertions, 6 deletions
diff --git a/lib/sqlalchemy/engine/cursor.py b/lib/sqlalchemy/engine/cursor.py
index 3ff815f70..0204fbbbb 100644
--- a/lib/sqlalchemy/engine/cursor.py
+++ b/lib/sqlalchemy/engine/cursor.py
@@ -1413,7 +1413,8 @@ class CursorResult(Result[_T]):
@property
def inserted_primary_key_rows(self):
- """Return the value of :attr:`_engine.CursorResult.inserted_primary_key`
+ """Return the value of
+ :attr:`_engine.CursorResult.inserted_primary_key`
as a row contained within a list; some dialects may support a
multiple row form as well.
@@ -1754,7 +1755,8 @@ class CursorResult(Result[_T]):
@property
def returns_rows(self):
- """True if this :class:`_engine.CursorResult` returns zero or more rows.
+ """True if this :class:`_engine.CursorResult` returns zero or more
+ rows.
I.e. if it is legal to call the methods
:meth:`_engine.CursorResult.fetchone`,
diff --git a/lib/sqlalchemy/engine/reflection.py b/lib/sqlalchemy/engine/reflection.py
index c3c5ff5a8..f744d53ad 100644
--- a/lib/sqlalchemy/engine/reflection.py
+++ b/lib/sqlalchemy/engine/reflection.py
@@ -881,7 +881,8 @@ class Inspector(inspection.Inspectable["Inspector"]):
scope: ObjectScope = ObjectScope.DEFAULT,
**kw: Any,
) -> Dict[TableKey, List[ReflectedColumn]]:
- r"""Return information about columns in all objects in the given schema.
+ r"""Return information about columns in all objects in the given
+ schema.
The objects can be filtered by passing the names to use to
``filter_names``.
diff --git a/lib/sqlalchemy/engine/result.py b/lib/sqlalchemy/engine/result.py
index a4e373ec3..df5a8199c 100644
--- a/lib/sqlalchemy/engine/result.py
+++ b/lib/sqlalchemy/engine/result.py
@@ -1893,7 +1893,8 @@ class TupleResult(FilterResult[_R], util.TypingOnly):
...
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.
@@ -2219,7 +2220,8 @@ SelfChunkedIteratorResult = TypeVar(
class ChunkedIteratorResult(IteratorResult[_TP]):
- """An :class:`.IteratorResult` that works from an iterator-producing callable.
+ """An :class:`.IteratorResult` that works from an iterator-producing
+ callable.
The given ``chunks`` argument is a function that is given a number of rows
to return in each chunk, or ``None`` for all rows. The function should
diff --git a/lib/sqlalchemy/engine/row.py b/lib/sqlalchemy/engine/row.py
index 06976dd4b..045b32ac5 100644
--- a/lib/sqlalchemy/engine/row.py
+++ b/lib/sqlalchemy/engine/row.py
@@ -307,7 +307,8 @@ class ROMappingItemsView(ROMappingView, typing.ItemsView[str, Any]):
class RowMapping(BaseRow, typing.Mapping[str, Any]):
- """A ``Mapping`` that maps column names and objects to :class:`.Row` values.
+ """A ``Mapping`` that maps column names and objects to :class:`.Row`
+ values.
The :class:`.RowMapping` is available from a :class:`.Row` via the
:attr:`.Row._mapping` attribute, as well as from the iterable interface