diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutter.library_name}}/rest-client.py b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutter.library_name}}/rest-client.py index 207a7bf1e..fb805ad55 100644 --- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutter.library_name}}/rest-client.py +++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutter.library_name}}/rest-client.py @@ -47,7 +47,11 @@ if TYPE_CHECKING: import requests + {%- if cookiecutter.auth_method in ("OAuth2", "JWT") %} from singer_sdk.helpers.types import Auth, Context + {%- else %} + from singer_sdk.helpers.types import Context + {%- endif %} # TODO: Delete this is if not using json files for schema definition