diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-11-13 11:01:49 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-11-13 11:01:49 -0500 |
| commit | 37565d2ce2b4f0db5023c2549e2ddcb4a4ba0f7c (patch) | |
| tree | 6045f2052416cb4638e332253e8aa7bc568cbcfa /lib/sqlalchemy/sql | |
| parent | 3370cbde509b3e230c46a503956f11f78df74b88 (diff) | |
| download | sqlalchemy-37565d2ce2b4f0db5023c2549e2ddcb4a4ba0f7c.tar.gz | |
- fix missing argument in TypeDecorator.copy(), fixes #3584, references #2919
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/type_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/type_api.py b/lib/sqlalchemy/sql/type_api.py index bc67270eb..c367bc73e 100644 --- a/lib/sqlalchemy/sql/type_api.py +++ b/lib/sqlalchemy/sql/type_api.py @@ -675,7 +675,7 @@ class TypeDecorator(SchemaEventTarget, TypeEngine): def process_result_value(self, value, dialect): return value[7:] - def copy(self): + def copy(self, **kw): return MyType(self.impl.length) The class-level "impl" attribute is required, and can reference any @@ -1136,7 +1136,7 @@ class TypeDecorator(SchemaEventTarget, TypeEngine): """ return self - def copy(self): + def copy(self, **kw): """Produce a copy of this :class:`.TypeDecorator` instance. This is a shallow copy and is provided to fulfill part of |
