diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-03-04 23:31:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-03-04 23:31:49 +0000 |
commit | 1fd812626c5b8d85406ae261a08fa72a8bdafa2c (patch) | |
tree | 17ee802f736f4142453439d3805c2a34b97221b5 /lib/sqlalchemy/sql | |
parent | 825f555a81e55b541ba33e84ee8131d8c0de6d47 (diff) | |
parent | a261a78894c4f835b5da7fcbfb3d466a687bc11b (diff) | |
download | sqlalchemy-1fd812626c5b8d85406ae261a08fa72a8bdafa2c.tar.gz |
Merge "fix type string formatting calls" into main
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r-- | lib/sqlalchemy/sql/sqltypes.py | 8 |
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: |