Skip to content

Commit

Permalink
Code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
szubster committed Jan 10, 2025
1 parent 26283ef commit e1b11de
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def stream_slices(self) -> Iterable[StreamSlice]:
* Yield the last slice. At that point, once there are as many slices yielded as closes, the global slice will be closed too
"""
slice_generator = (
StreamSlice(partition=partition, cursor_slice=cursor_slice, extra_fields=partition.extra_fields)
StreamSlice(
partition=partition, cursor_slice=cursor_slice, extra_fields=partition.extra_fields
)
for partition in self._partition_router.stream_slices()
for cursor_slice in self._stream_cursor.stream_slices()
)
Expand All @@ -128,7 +130,9 @@ def stream_slices(self) -> Iterable[StreamSlice]:

def generate_slices_from_partition(self, partition: StreamSlice) -> Iterable[StreamSlice]:
slice_generator = (
StreamSlice(partition=partition, cursor_slice=cursor_slice, extra_fields=partition.extra_fields)
StreamSlice(
partition=partition, cursor_slice=cursor_slice, extra_fields=partition.extra_fields
)
for cursor_slice in self._stream_cursor.stream_slices()
)

Expand Down

0 comments on commit e1b11de

Please sign in to comment.