Skip to content

Commit 0b2620d

Browse files
author
octavia-squidington-iii
committed
Auto-fix lint and format issues
1 parent e822ddf commit 0b2620d

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def deserialize(self, state: MutableMapping[str, Any]) -> MutableMapping[str, An
7272
stream_slice[self.START_KEY] = self._from_state_message(stream_slice[self.START_KEY])
7373
stream_slice[self.END_KEY] = self._from_state_message(stream_slice[self.END_KEY])
7474
if self.MOST_RECENT_RECORD_KEY in stream_slice:
75-
stream_slice[self.MOST_RECENT_RECORD_KEY] = self._from_state_message(stream_slice[self.MOST_RECENT_RECORD_KEY])
75+
stream_slice[self.MOST_RECENT_RECORD_KEY] = self._from_state_message(
76+
stream_slice[self.MOST_RECENT_RECORD_KEY]
77+
)
7678
return state
7779

7880
def serialize(

unit_tests/sources/streams/concurrent/test_cursor.py

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -977,16 +977,18 @@ def test_given_most_recent_cursor_value_in_input_state_when_emit_state_then_seri
977977
_NO_LOOKBACK_WINDOW,
978978
)
979979

980-
cursor.close_partition(_partition(
981-
StreamSlice(
982-
partition={},
983-
cursor_slice={
984-
_LOWER_SLICE_BOUNDARY_FIELD: 20,
985-
_UPPER_SLICE_BOUNDARY_FIELD: 50,
986-
},
987-
),
988-
_stream_name=_A_STREAM_NAME,
989-
))
980+
cursor.close_partition(
981+
_partition(
982+
StreamSlice(
983+
partition={},
984+
cursor_slice={
985+
_LOWER_SLICE_BOUNDARY_FIELD: 20,
986+
_UPPER_SLICE_BOUNDARY_FIELD: 50,
987+
},
988+
),
989+
_stream_name=_A_STREAM_NAME,
990+
)
991+
)
990992

991993
expected_state = {
992994
"state_type": ConcurrencyCompatibleStateType.date_range.value,
@@ -998,8 +1000,9 @@ def test_given_most_recent_cursor_value_in_input_state_when_emit_state_then_seri
9981000
},
9991001
],
10001002
}
1001-
self._state_manager.update_state_for_stream.assert_called_once_with(_A_STREAM_NAME, _A_STREAM_NAMESPACE, expected_state)
1002-
1003+
self._state_manager.update_state_for_stream.assert_called_once_with(
1004+
_A_STREAM_NAME, _A_STREAM_NAMESPACE, expected_state
1005+
)
10031006

10041007

10051008
class ClampingIntegrationTest(TestCase):

0 commit comments

Comments
 (0)