Skip to content

Commit 695b819

Browse files
fix(cdk): update iterate_with_last_flag return type to allow None for empty generators
Co-Authored-By: Daryna Ishchenko <darina.ishchenko17@gmail.com>
1 parent 7a12e52 commit 695b819

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
T = TypeVar("T")
4040

4141

42-
def iterate_with_last_flag(generator: Iterable[T]) -> Iterable[tuple[T, bool]]:
42+
def iterate_with_last_flag(generator: Iterable[T]) -> Iterable[tuple[T | None, bool]]:
4343
iterator = iter(generator)
4444

4545
try:

0 commit comments

Comments
 (0)