From ca3b153eb07b7a95172f80d22d6bc8978f3ad490 Mon Sep 17 00:00:00 2001 From: Jaume Sanjuan Date: Mon, 30 Sep 2024 10:21:52 +0200 Subject: [PATCH] fix type hints for python3.8 --- dbt/adapters/glue/impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt/adapters/glue/impl.py b/dbt/adapters/glue/impl.py index 66c5777..2ba68cf 100644 --- a/dbt/adapters/glue/impl.py +++ b/dbt/adapters/glue/impl.py @@ -545,7 +545,7 @@ def create_csv_table(self, model, agate_table): except Exception as e: logger.error(e) - def _map_csv_chunks_to_code(self, csv_chunks: list[list[dict]], session: GlueConnection, model, mode): + def _map_csv_chunks_to_code(self, csv_chunks: List[List[dict]], session: GlueConnection, model, mode): statements = [] for i, csv_chunk in enumerate(csv_chunks): is_first = i == 0 @@ -582,7 +582,7 @@ def _map_csv_chunks_to_code(self, csv_chunks: list[list[dict]], session: GlueCon statements.append(code) return statements - def _split_csv_records_into_chunks(self, records: list[dict], target_size=60000): + def _split_csv_records_into_chunks(self, records: List[dict], target_size=60000): chunks = [[]] for record in records: if len(str([*chunks[-1], record])) > target_size: