From a836b798b06c8ebb52b7f65b405aea9686396af0 Mon Sep 17 00:00:00 2001 From: Colin Blackburn Date: Thu, 14 Sep 2023 11:52:36 +0100 Subject: [PATCH] Use explicit Union --- etlhelper/etl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etlhelper/etl.py b/etlhelper/etl.py index a367bd9..1808026 100644 --- a/etlhelper/etl.py +++ b/etlhelper/etl.py @@ -16,6 +16,7 @@ Iterator, NamedTuple, Optional, + Union, ) from etlhelper.abort import ( @@ -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 """