]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix failed build (pep8)
authoraplatkouski <5857672+aplatkouski@users.noreply.github.com>
Sun, 21 Jun 2020 14:24:19 +0000 (17:24 +0300)
committeraplatkouski <5857672+aplatkouski@users.noreply.github.com>
Mon, 22 Jun 2020 14:39:42 +0000 (17:39 +0300)
Signed-off-by: aplatkouski <5857672+aplatkouski@users.noreply.github.com>
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/visitors.py

index 1e6f1ee2a12eab97368628edd99c429906e7c15f..6fdf1f37264ea82db3adf26ccf5d8fa3a17786ac 100644 (file)
@@ -463,7 +463,7 @@ class InspectionAttr(object):
     __slots__ = ()
 
     is_selectable = False
-    """Return True if this object is an instance of 
+    """Return True if this object is an instance of
     :class:`_expression.Selectable`."""
 
     is_aliased_class = False
@@ -505,7 +505,7 @@ class InspectionAttr(object):
     """
 
     is_clause_element = False
-    """True if this object is an instance of 
+    """True if this object is an instance of
     :class:`_expression.ClauseElement`."""
 
     extension_type = NOT_EXTENSION
index fe3afae3498a15e8247150bb36909e8db837cf52..f7a45f94cbdc74886a29e1317cb2bed7dce3b0f0 100644 (file)
@@ -1412,16 +1412,16 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
                     "from, there are multiple FROMS which can "
                     "join to this entity. Please use the .select_from() "
                     "method to establish an explicit left side, as well as "
-                    "providing an explicit ON clause if not present already to "
-                    "help resolve the ambiguity."
+                    "providing an explicit ON clause if not present already "
+                    "to help resolve the ambiguity."
                 )
             else:
                 raise sa_exc.InvalidRequestError(
                     "Don't know how to join to %r. "
                     "Please use the .select_from() "
                     "method to establish an explicit left side, as well as "
-                    "providing an explicit ON clause if not present already to "
-                    "help resolve the ambiguity." % (right,)
+                    "providing an explicit ON clause if not present already "
+                    "to help resolve the ambiguity." % (right,)
                 )
 
         elif self._entities:
@@ -1458,16 +1458,16 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
                     "from, there are multiple FROMS which can "
                     "join to this entity. Please use the .select_from() "
                     "method to establish an explicit left side, as well as "
-                    "providing an explicit ON clause if not present already to "
-                    "help resolve the ambiguity."
+                    "providing an explicit ON clause if not present already "
+                    "to help resolve the ambiguity."
                 )
             else:
                 raise sa_exc.InvalidRequestError(
                     "Don't know how to join to %r. "
                     "Please use the .select_from() "
                     "method to establish an explicit left side, as well as "
-                    "providing an explicit ON clause if not present already to "
-                    "help resolve the ambiguity." % (right,)
+                    "providing an explicit ON clause if not present already "
+                    "to help resolve the ambiguity." % (right,)
                 )
         else:
             raise sa_exc.InvalidRequestError(
index d86b76111cf4c919d451989e1afae8c53eea169d..509e79430297630a89eedd881e6302ad1426a2d4 100644 (file)
@@ -759,7 +759,7 @@ class Mapper(
     """The :class:`_expression.Selectable` to which this :class:`_orm.Mapper`
     is mapped.
 
-    Typically an instance of :class:`_schema.Table`, 
+    Typically an instance of :class:`_schema.Table`,
     :class:`_expression.Join`, or :class:`_expression.Alias`.
 
     The :attr:`_orm.Mapper.persist_selectable` is separate from
index ff0b22544ae5cb32afa64dfcbb2459d05e26379d..5d7f80b1bae6b72d7ee140366a9932f8d8aa1e56 100644 (file)
@@ -2235,7 +2235,7 @@ class JSON(Indexable, TypeEngine):
         )
 
     While it is possible to use :attr:`_types.JSON.NULL` in this context, the
-    :attr:`_types.JSON.NULL` value will be returned as the value of the 
+    :attr:`_types.JSON.NULL` value will be returned as the value of the
     column,
     which in the context of the ORM or other repurposing of the default
     value, may not be desirable.  Using a SQL expression means the value
index 9ffde2c0ae7b4171e513b11ff1a8351118f80a55..56d3c93b3cb764bce539d69e8cd0756f780eb10d 100644 (file)
@@ -380,7 +380,7 @@ class InternalTraversal(util.with_metaclass(_InternalTraversalType, object)):
     """
 
     dp_table_hint_list = symbol("TH")
-    """Visit the ``_hints`` collection of a :class:`_expression.Select` 
+    """Visit the ``_hints`` collection of a :class:`_expression.Select`
     object.
 
     """