]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix test failures from func doc fix
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Oct 2019 02:11:31 +0000 (22:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Oct 2019 02:12:31 +0000 (22:12 -0400)
The doc edits in e45878bf4f9cdfb714dce8b2a4d705178947674d
triggered a doctest and a pep8 failure.

Change-Id: I41c6cba9bab2d3721d9c6280be47eec32f4b4736
(cherry picked from commit d25c03310fd3523392d37b88c23c48cf26836248)

doc/build/core/tutorial.rst
lib/sqlalchemy/sql/functions.py

index f7b28a3db337fb00925f8cf61024aa2b1f03e0fe..211ef3b9371d58750d2b874df73c3b43ac7c4bea 100644 (file)
@@ -1357,7 +1357,7 @@ However, in order for the column expression generated by the function to
 have type-specific operator behavior as well as result-set behaviors, such
 as date and numeric coercions, the type may need to be specified explicitly::
 
-    >>> stmt = select([func.date(some_table.c.date_string, type_=Date)])
+    stmt = select([func.date(some_table.c.date_string, type_=Date)])
 
 
 Functions are most typically used in the columns clause of a select statement,
index f24c51ff2acecf25be4c8408aa3171b140603ad9..67d404fef35b226414458df4509ac8ecbe28170d 100644 (file)
@@ -426,7 +426,7 @@ class Function(FunctionElement):
     :param \*clauses: list of column expressions that form the arguments
      of the SQL function call.
 
-    :param type_: optional :class:`.TypeEngine` datatype object that will be
+    :param type\_: optional :class:`.TypeEngine` datatype object that will be
      used as the return value of the column expression generated by this
      function call.