summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-07-10 11:26:13 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-07-10 11:26:13 -0400
commite5d0fa94937b6572bbf4a08d4a8870e749fcea03 (patch)
tree1b032764420141d19560b89aa8beb4e453da826e /lib/sqlalchemy
parent1fc440393a612abcb837871003ac0d81721e1938 (diff)
downloadsqlalchemy-e5d0fa94937b6572bbf4a08d4a8870e749fcea03.tar.gz
- The :meth:`.TypeEngine.with_variant` method will now accept a
type class as an argument which is internally converted to an instance, using the same convention long established by other constructs such as :class:`.Column`. fixes #3122
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/sql/type_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/type_api.py b/lib/sqlalchemy/sql/type_api.py
index 6fa0bc64a..f9af21baa 100644
--- a/lib/sqlalchemy/sql/type_api.py
+++ b/lib/sqlalchemy/sql/type_api.py
@@ -263,7 +263,7 @@ class TypeEngine(Visitable):
.. versionadded:: 0.7.2
"""
- return Variant(self, {dialect_name: type_})
+ return Variant(self, {dialect_name: to_instance(type_)})
@util.memoized_property