From 9fc8c59c4959cf752300d85e1ce5e25deb080a22 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Mon, 4 Jun 2018 21:37:18 +0200 Subject: [PATCH] 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 (cherry picked from commit 5bdab5b0eea21d51cc30652c7e3a713c89bfe013) --- doc/build/core/custom_types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.2