summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/types.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py
index 92ff274f8..c60f214f9 100644
--- a/lib/sqlalchemy/types.py
+++ b/lib/sqlalchemy/types.py
@@ -224,7 +224,10 @@ class TypeDecorator(AbstractType):
raise AssertionError("TypeDecorator implementations require a class-level "
"variable 'impl' which refers to the class of type being decorated")
self.impl = self.__class__.impl(*args, **kwargs)
-
+
+ def adapt(self, cls):
+ return cls()
+
def dialect_impl(self, dialect):
try:
return self._impl_dict[dialect.__class__]