]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix code line length
authorChristopher Jones <christopher.jones@oracle.com>
Tue, 12 Nov 2024 01:10:51 +0000 (12:10 +1100)
committerChristopher Jones <christopher.jones@oracle.com>
Tue, 12 Nov 2024 01:10:51 +0000 (12:10 +1100)
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/oracle/types.py
lib/sqlalchemy/engine/events.py
lib/sqlalchemy/ext/compiler.py
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py

index 0d51b3e034f4769b56952b144e07a5c4e85bcd94..dccaeaff7397198e7a3afdf38cc3368a57104c8c 100644 (file)
@@ -965,10 +965,10 @@ class OracleCompiler(compiler.SQLCompiler):
                     "Computed columns don't work with Oracle Database UPDATE "
                     "statements that use RETURNING; the value of the column "
                     "*before* the UPDATE takes place is returned.   It is "
-                    "advised to not use RETURNING with an Oracle Database computed "
-                    "column.  Consider setting implicit_returning to False on "
-                    "the Table object in order to avoid implicit RETURNING "
-                    "clauses from being generated for this Table."
+                    "advised to not use RETURNING with an Oracle Database "
+                    "computed "column.  Consider setting implicit_returning "
+                    "to False on "the Table object in order to avoid implicit "
+                    "RETURNING clauses from being generated for this Table."
                 )
             if column.type._has_column_expression:
                 col_expr = column.type.column_expression(column)
@@ -1373,8 +1373,9 @@ class OracleDDLCompiler(compiler.DDLCompiler):
         )
         if generated.persisted is True:
             raise exc.CompileError(
-                "Oracle Database computed columns do not support 'stored' persistence; "
-                "set the 'persisted' flag to None or False for Oracle Database support."
+                "Oracle Database computed columns do not support 'stored' "
+                "persistence; set the 'persisted' flag to None or False for "
+                "Oracle Database support."
             )
         elif generated.persisted is False:
             text += " VIRTUAL"
index c75fbd9f7a45dd14a5c0e5c7a426b264ac0d27f0..2f84415ea8f7b10787cc3de81ffc0566f08dba7f 100644 (file)
@@ -92,10 +92,11 @@ class FLOAT(sqltypes.FLOAT):
         r"""
         Construct a FLOAT
 
-        :param binary_precision: Oracle Database binary precision value to be rendered
-         in DDL. This may be approximated to the number of decimal characters
-         using the formula "decimal precision = 0.30103 * binary precision".
-         The default value used by Oracle Database for FLOAT / DOUBLE PRECISION is 126.
+        :param binary_precision: Oracle Database binary precision value to be
+         rendered in DDL. This may be approximated to the number of decimal
+         characters using the formula "decimal precision = 0.30103 * binary
+         precision".  The default value used by Oracle Database for FLOAT /
+         DOUBLE PRECISION is 126.
 
         :param asdecimal: See :paramref:`_sqltypes.Float.asdecimal`
 
@@ -261,7 +262,8 @@ class TIMESTAMP(sqltypes.TIMESTAMP):
          use Oracle Database's ``TIMESTAMP WITH TIME ZONE`` datatype.
 
         :param local_timezone: boolean.  Indicates that the TIMESTAMP type
-         should use Oracle Database's ``TIMESTAMP WITH LOCAL TIME ZONE`` datatype.
+         should use Oracle Database's ``TIMESTAMP WITH LOCAL TIME ZONE``
+         datatype.
 
 
         """
index 0323700c400cf527bbf8fa58cb614ff4622f9931..2273dd2c41a48396b0aa35d2ec026426bcf8173f 100644 (file)
@@ -930,7 +930,8 @@ class DialectEvents(event.Events[Dialect]):
 
         The setinputsizes hook overall is only used for dialects which include
         the flag ``use_setinputsizes=True``.  Dialects which use this
-        include python-oracledb, cx_Oracle, pg8000, asyncpg, and pyodbc dialects.
+        include python-oracledb, cx_Oracle, pg8000, asyncpg, and pyodbc
+        dialects.
 
         .. note::
 
index 2408b97184e29b5a53b7e0ab3a05bad43bc4458b..9d4be255c0d41d3f0775e1b9817eec79f6898826 100644 (file)
@@ -226,7 +226,8 @@ A synopsis is as follows:
       @compiles(coalesce, 'oracle')
       def compile(element, compiler, **kw):
           if len(element.clauses) > 2:
-              raise TypeError("coalesce only supports two arguments on Oracle Database")
+              raise TypeError("coalesce only supports two arguments on "
+                              "Oracle Database")
           return "nvl(%s)" % compiler.process(element.clauses, **kw)
 
 * :class:`.ExecutableDDLElement` - The root of all DDL expressions,
index 6ac237f11858c30b3b329407c7dec8e9fc27d8a5..f8d3711fc4f3b23e100dca2607b617015b812802 100644 (file)
@@ -1580,9 +1580,9 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
         statement._label_style = self.label_style
 
         # Oracle Database however does not allow FOR UPDATE on the subquery,
-        # and the Oracle Database dialects ignore it, plus for PostgreSQL, MySQL
-        # we expect that all elements of the row are locked, so also put it
-        # on the outside (except in the case of PG when OF is used)
+        # and the Oracle Database dialects ignore it, plus for PostgreSQL,
+        # MySQL we expect that all elements of the row are locked, so also put
+        # it on the outside (except in the case of PG when OF is used)
         if (
             self._for_update_arg is not None
             and self._for_update_arg.of is None
index d759a76c528db1ef66d8e802975929034c75d9c9..3135a059c5d4a3b0da7655729982bf1d95dcd208 100644 (file)
@@ -2348,7 +2348,8 @@ class SQLCompiler(Compiled):
         """Called when a SELECT statement has no froms, and no FROM clause is
         to be appended.
 
-        Gives Oracle Database a chance to tack on a ``FROM DUAL`` to the string output.
+        Gives Oracle Database a chance to tack on a ``FROM DUAL`` to the string
+       output.
 
         """
         return ""
index c6af6018560542d95fcc96397e748d750f18b155..c1c3841456973326c3bd1b8d401e708aa3dff87e 100644 (file)
@@ -1605,9 +1605,9 @@ class ColumnOperators(Operators):
           the operator as "REGEXP" or "NOT REGEXP".  This is compatible with
           SQLite and MySQL, for example.
 
-        Regular expression support is currently implemented for Oracle Database,
-        PostgreSQL, MySQL and MariaDB.  Partial support is available for
-        SQLite.  Support among third-party dialects may vary.
+        Regular expression support is currently implemented for Oracle
+       Database, PostgreSQL, MySQL and MariaDB.  Partial support is available
+       for SQLite.  Support among third-party dialects may vary.
 
         :param pattern: The regular expression pattern string or column
           clause.
index f068453b1f3b72932cca7c19dab2b35bee7aa2d8..19d8f9f96eb8f8f7298412c268cc98bcf4f6fe34 100644 (file)
@@ -3870,8 +3870,8 @@ class Sequence(HasSchemaAttr, IdentityOptions, DefaultGenerator):
          understood by Oracle Database and PostgreSQL.
 
         :param order: optional boolean value; if ``True``, renders the
-         ORDER keyword, understood by Oracle Database, indicating the sequence is
-         definitively ordered.   May be necessary to provide deterministic
+         ORDER keyword, understood by Oracle Database, indicating the sequence
+        is definitively ordered.   May be necessary to provide deterministic
          ordering using Oracle RAC.
 
         :param data_type: The type to be returned by the sequence, for
index ee6176d8fc9761e474de93a40b1a34f667a608f1..8aa4babeb9996019e381bf101f1f71d13a5600bc 100644 (file)
@@ -530,9 +530,9 @@ class HasHints:
             **specific to a single table** to a statement, in a location that
             is **dialect-specific**.  To add generic optimizer hints to the
             **beginning** of a statement ahead of the SELECT keyword such as
-            for MySQL or Oracle Database, use the :meth:`_expression.Select.prefix_with`
-            method.  To add optimizer hints to the **end** of a statement such
-            as for PostgreSQL, use the
+            for MySQL or Oracle Database, use the
+            :meth:`_expression.Select.prefix_with` method.  To add optimizer
+            hints to the **end** of a statement such as for PostgreSQL, use the
             :meth:`_expression.Select.with_statement_hint` method.
 
         The text of the hint is rendered in the appropriate