Skip to content

Commit 624ab9a

Browse files
author
octavia-squidington-iii
committed
Auto-fix lint and format issues
1 parent 1e97899 commit 624ab9a

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

airbyte_cdk/sources/streams/concurrent/state_converters/datetime_stream_state_converter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ def convert_from_sequential_state(
8282
# The start and end are the same to avoid confusion as to whether the records for this slice
8383
# were actually synced
8484
slices = [
85-
{self.START_KEY: start if start is not None else sync_start, self.END_KEY: sync_start, self.MOST_RECENT_RECORD_KEY: sync_start}
85+
{
86+
self.START_KEY: start if start is not None else sync_start,
87+
self.END_KEY: sync_start,
88+
self.MOST_RECENT_RECORD_KEY: sync_start,
89+
}
8690
]
8791

8892
return sync_start, {

unit_tests/sources/streams/concurrent/test_cursor.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def setUp(self) -> None:
6464
self._message_repository = Mock(spec=MessageRepository)
6565
self._state_manager = Mock(spec=ConnectorStateManager)
6666

67-
def _cursor_with_slice_boundary_fields(self, is_sequential_state: bool = True) -> ConcurrentCursor:
67+
def _cursor_with_slice_boundary_fields(
68+
self, is_sequential_state: bool = True
69+
) -> ConcurrentCursor:
6870
return ConcurrentCursor(
6971
_A_STREAM_NAME,
7072
_A_STREAM_NAMESPACE,
@@ -128,7 +130,10 @@ def test_given_state_not_sequential_when_close_partition_then_emit_state(self) -
128130
_A_STREAM_NAME,
129131
_A_STREAM_NAMESPACE,
130132
{
131-
"slices": [{"end": 0, "most_recent_cursor_value": 0, "start": 0}, {"end": 30, "start": 12}],
133+
"slices": [
134+
{"end": 0, "most_recent_cursor_value": 0, "start": 0},
135+
{"end": 30, "start": 12},
136+
],
132137
"state_type": "date-range",
133138
},
134139
)

0 commit comments

Comments
 (0)