]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add the kwargs to the Adapt method
authorFokko Driesprong <fokko@driesprong.frl>
Mon, 4 Jun 2018 19:37:18 +0000 (21:37 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Jun 2018 19:37:18 +0000 (21:37 +0200)
This will override the original signature of the method:
https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/sql/type_api.py#L522

doc/build/core/custom_types.rst

index 6864e1915d8edcbd793409662cd81520e72ffa4d..0962f1caa8a4af48eb74fd92519507c37275a10e 100644 (file)
@@ -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: