summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2022-03-04 23:31:49 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-03-04 23:31:49 +0000
commit1fd812626c5b8d85406ae261a08fa72a8bdafa2c (patch)
tree17ee802f736f4142453439d3805c2a34b97221b5 /lib/sqlalchemy/sql
parent825f555a81e55b541ba33e84ee8131d8c0de6d47 (diff)
parenta261a78894c4f835b5da7fcbfb3d466a687bc11b (diff)
downloadsqlalchemy-1fd812626c5b8d85406ae261a08fa72a8bdafa2c.tar.gz
Merge "fix type string formatting calls" into main
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/sqltypes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py
index 6b2d3654b..8f500d272 100644
--- a/lib/sqlalchemy/sql/sqltypes.py
+++ b/lib/sqlalchemy/sql/sqltypes.py
@@ -1756,10 +1756,10 @@ class Boolean(Emulated, TypeEngine[bool], SchemaType):
def _strict_as_bool(self, value):
if value not in self._strict_bools:
if not isinstance(value, int):
- raise TypeError("Not a boolean value: %r" % value)
+ raise TypeError("Not a boolean value: %r" % (value,))
else:
raise ValueError(
- "Value %r is not None, True, or False" % value
+ "Value %r is not None, True, or False" % (value,)
)
return value
@@ -3088,7 +3088,7 @@ class NullType(TypeEngine):
def literal_processor(self, dialect):
def process(value):
raise exc.CompileError(
- "Don't know how to render literal SQL value: %r" % value
+ "Don't know how to render literal SQL value: %r" % (value,)
)
return process
@@ -3182,7 +3182,7 @@ def _resolve_value_to_type(value):
insp.__class__ in inspection._registrars
):
raise exc.ArgumentError(
- "Object %r is not legal as a SQL literal value" % value
+ "Object %r is not legal as a SQL literal value" % (value,)
)
return NULLTYPE
else: