Skip to content

Commit

Permalink
A generic Row is a Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
ximenesuk committed Sep 13, 2023
1 parent 4a2efcb commit 0e7acc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etlhelper/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def cursor(self):
...


Row = Iterable[Any]
Row = Sequence[Any]
Chunk = list[Row]

logger = logging.getLogger('etlhelper')
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 0e7acc9

Please sign in to comment.