From f74493da75975a9c0d52088f36236c27debf8d68 Mon Sep 17 00:00:00 2001 From: Ken Payne Date: Thu, 15 Sep 2022 16:25:34 +0100 Subject: [PATCH] fix: resolve issue where TypeError is thrown by SQLConnector cookiecutter implementation due to super() references (#972) replace super() with direct class references --- ...'SQL' == cookiecutter.stream_type %}client.py{%endif%} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutter.library_name}}/{%if 'SQL' == cookiecutter.stream_type %}client.py{%endif%} b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutter.library_name}}/{%if 'SQL' == cookiecutter.stream_type %}client.py{%endif%} index 8b6380578..6217b9015 100644 --- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutter.library_name}}/{%if 'SQL' == cookiecutter.stream_type %}client.py{%endif%} +++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutter.library_name}}/{%if 'SQL' == cookiecutter.stream_type %}client.py{%endif%} @@ -29,9 +29,9 @@ class {{ cookiecutter.source_name }}Connector(SQLConnector): Developers may optionally add custom logic before calling the default implementation inherited from the base class. """ - # Optionally, add custom logic before calling the super(). + # Optionally, add custom logic before calling the parent SQLConnector method. # You may delete this method if overrides are not needed. - return super().to_jsonschema_type(sql_type) + return SQLConnector.to_jsonschema_type(sql_type) @staticmethod def to_sql_type(jsonschema_type: dict) -> sqlalchemy.types.TypeEngine: @@ -40,9 +40,9 @@ class {{ cookiecutter.source_name }}Connector(SQLConnector): Developers may optionally add custom logic before calling the default implementation inherited from the base class. """ - # Optionally, add custom logic before calling the super(). + # Optionally, add custom logic before calling the parent SQLConnector method. # You may delete this method if overrides are not needed. - return super().to_sql_type(jsonschema_type) + return SQLConnector.to_sql_type(jsonschema_type) class {{ cookiecutter.source_name }}Stream(SQLStream):