Skip to content

Commit

Permalink
fix type hints for python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaume Sanjuan committed Sep 30, 2024
1 parent f4687a6 commit ca3b153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/adapters/glue/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ca3b153

Please sign in to comment.