From: Nick Crews Date: Wed, 10 May 2023 17:01:59 +0000 (-0800) Subject: fixup: docstring tweak X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ac8234743e5db8cfafa6165c02f6ed57e057258;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fixup: docstring tweak --- diff --git a/lib/sqlalchemy/sql/_elements_constructors.py b/lib/sqlalchemy/sql/_elements_constructors.py index e85d46818f..cdbe7be7d6 100644 --- a/lib/sqlalchemy/sql/_elements_constructors.py +++ b/lib/sqlalchemy/sql/_elements_constructors.py @@ -919,7 +919,7 @@ def try_cast(*arg, **kw): construct, and works in the same way, except in regards to error handling. If the function encounters an un-castable value (for instance when trying to convert the string "hi" to an INT) - then normal :class:`.Cast` raises an error. :class:`.TryCast` + then normal :class:`.Cast` raises an error, :class:`.TryCast` instead returns a NULL value. E.g.::