From 1ac8234743e5db8cfafa6165c02f6ed57e057258 Mon Sep 17 00:00:00 2001 From: Nick Crews Date: Wed, 10 May 2023 09:01:59 -0800 Subject: [PATCH] fixup: docstring tweak --- lib/sqlalchemy/sql/_elements_constructors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.:: -- 2.47.3