From 0e7acc99545d7259250dddc2503730b03a071f3f Mon Sep 17 00:00:00 2001 From: Colin Blackburn Date: Wed, 13 Sep 2023 15:14:34 +0100 Subject: [PATCH] A generic Row is a Sequence --- etlhelper/etl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etlhelper/etl.py b/etlhelper/etl.py index 113b22f..2833c28 100644 --- a/etlhelper/etl.py +++ b/etlhelper/etl.py @@ -49,7 +49,7 @@ def cursor(self): ... -Row = Iterable[Any] +Row = Sequence[Any] Chunk = list[Row] logger = logging.getLogger('etlhelper') @@ -229,7 +229,7 @@ def fetchall( def executemany( query: str, conn: Connection, - rows: list[tuple[Any]], + rows: Iterator[Row], transform: Optional[Callable[[Chunk], Chunk]] = None, on_error: Optional[Callable] = None, commit_chunks: bool = True,