From 6ae34bec7937af25aeb91e9feb85c173fdab8d0d Mon Sep 17 00:00:00 2001 From: Henning Date: Mon, 14 Nov 2022 21:33:34 +0000 Subject: [PATCH 1/2] Update import --- .../{{cookiecutter.library_name}}/sinks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cookiecutter/target-template/{{cookiecutter.target_id}}/{{cookiecutter.library_name}}/sinks.py b/cookiecutter/target-template/{{cookiecutter.target_id}}/{{cookiecutter.library_name}}/sinks.py index bf1bfb664..fde6c5c38 100644 --- a/cookiecutter/target-template/{{cookiecutter.target_id}}/{{cookiecutter.library_name}}/sinks.py +++ b/cookiecutter/target-template/{{cookiecutter.target_id}}/{{cookiecutter.library_name}}/sinks.py @@ -12,7 +12,11 @@ {%- set sinkclass = sinkclass_mapping[cookiecutter.serialization_method] %} -from singer_sdk.sinks import {% if sinkclass == "SQLSink" %}SQLConnector, {% endif %}{{ sinkclass }} +from singer_sdk.sinks import {{ sinkclass }} + +{%- if sinkclass == "SQLSink" %} +from singer_sdk.connectors import SQLConnector +{% endif %} {%- if sinkclass == "SQLSink" %} From 2f1dcf41c83b734981445a4c70c34484b6b5d6ff Mon Sep 17 00:00:00 2001 From: Henning Date: Mon, 14 Nov 2022 21:52:59 +0000 Subject: [PATCH 2/2] fix extra blank line because flake8 --- .../{{cookiecutter.library_name}}/sinks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cookiecutter/target-template/{{cookiecutter.target_id}}/{{cookiecutter.library_name}}/sinks.py b/cookiecutter/target-template/{{cookiecutter.target_id}}/{{cookiecutter.library_name}}/sinks.py index fde6c5c38..938395b76 100644 --- a/cookiecutter/target-template/{{cookiecutter.target_id}}/{{cookiecutter.library_name}}/sinks.py +++ b/cookiecutter/target-template/{{cookiecutter.target_id}}/{{cookiecutter.library_name}}/sinks.py @@ -20,7 +20,6 @@ {%- if sinkclass == "SQLSink" %} - class {{ cookiecutter.destination_name }}Connector(SQLConnector): """The connector for {{ cookiecutter.destination_name }}.