Skip to content

Commit

Permalink
Use explicit Union
Browse files Browse the repository at this point in the history
  • Loading branch information
ximenesuk committed Sep 14, 2023
1 parent 45d54ef commit a836b79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etlhelper/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Iterator,
NamedTuple,
Optional,
Union,
)

from etlhelper.abort import (
Expand Down Expand Up @@ -640,7 +641,7 @@ def validate_identifier(identifier: str) -> None:
def _chunker(
iterable: Iterable[Row],
n_chunks: int,
) -> Iterator[tuple[Row | None, ...]]:
) -> Iterator[tuple[Union[Row, None], ...]]:
"""Collect data into fixed-length chunks or blocks.
Code from recipe at https://docs.python.org/3.6/library/itertools.html
"""
Expand Down

0 comments on commit a836b79

Please sign in to comment.