From: Fokko Driesprong Date: Mon, 4 Jun 2018 19:37:18 +0000 (+0200) Subject: Add the kwargs to the Adapt method X-Git-Tag: rel_1_3_0b1~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bdab5b0eea21d51cc30652c7e3a713c89bfe013;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add the kwargs to the Adapt method This will override the original signature of the method: https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/sql/type_api.py#L522 --- diff --git a/doc/build/core/custom_types.rst b/doc/build/core/custom_types.rst index 6864e1915d..0962f1caa8 100644 --- a/doc/build/core/custom_types.rst +++ b/doc/build/core/custom_types.rst @@ -324,7 +324,7 @@ cursor directly:: return None return process - def adapt(self, impltype): + def adapt(self, impltype, **kw): return MySpecialTime(self.special_argument) .. _types_sql_value_processing: