From d5ec7fa6ae07dd60308597c5d05e203f163969f8 Mon Sep 17 00:00:00 2001 From: Marcel Coetzee Date: Sun, 5 May 2024 22:35:53 +0200 Subject: [PATCH] Format Signed-off-by: Marcel Coetzee --- .../custom_destination_lancedb.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/examples/custom_destination_lancedb/custom_destination_lancedb.py b/docs/examples/custom_destination_lancedb/custom_destination_lancedb.py index 3c34c67df4..fc6953e98d 100644 --- a/docs/examples/custom_destination_lancedb/custom_destination_lancedb.py +++ b/docs/examples/custom_destination_lancedb/custom_destination_lancedb.py @@ -75,9 +75,7 @@ def get_spotify_access_token(client_id: str, client_secret: str) -> str: return auth_response.json()["access_token"] -def fetch_show_episode_data( - show_id: str, access_token=None, params: Dict[str, Any] = None -): +def fetch_show_episode_data(show_id: str, access_token=None, params: Dict[str, Any] = None): """Fetch all shows data from Spotify API based on endpoint and params.""" url = f"{BASE_SPOTIFY_URL}/shows/{show_id}/episodes" if params is None: @@ -94,9 +92,7 @@ def fetch_show_episode_data( @dlt.source -def spotify_shows( - client_id: str = dlt.secrets.value, client_secret: str = dlt.secrets.value -): +def spotify_shows(client_id: str = dlt.secrets.value, client_secret: str = dlt.secrets.value): access_token = get_spotify_access_token(client_id, client_secret) params = {"limit": 50} for show in fields(Shows):