Skip to content

Commit c7c5a95

Browse files
author
octavia-squidington-iii
committed
Auto-fix lint and format issues
1 parent 3fdba6e commit c7c5a95

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

airbyte_cdk/sources/declarative/incremental/concurrent_partition_cursor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,9 @@ def observe(self, record: Record) -> None:
525525
)
526526
except ValueError as exception:
527527
if not self._logged_regarding_datetime_format_error:
528-
logger.warning(f"Tried to parse cursor value `{record_cursor_value}` but go error: {exception}")
528+
logger.warning(
529+
f"Tried to parse cursor value `{record_cursor_value}` but go error: {exception}"
530+
)
529531
self._logged_regarding_datetime_format_error = True
530532
return
531533

unit_tests/sources/declarative/incremental/test_concurrent_perpartitioncursor.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from airbyte_cdk.sources.streams.concurrent.state_converters.datetime_stream_state_converter import (
3131
CustomFormatConcurrentStreamStateConverter,
3232
)
33-
from airbyte_cdk.sources.types import StreamSlice, Record
33+
from airbyte_cdk.sources.types import Record, StreamSlice
3434
from airbyte_cdk.test.catalog_builder import CatalogBuilder, ConfiguredAirbyteStreamBuilder
3535
from airbyte_cdk.test.entrypoint_wrapper import EntrypointOutput, read
3636

@@ -4408,7 +4408,9 @@ def test_given_record_with_bad_cursor_value_the_global_state_parsing_does_not_br
44084408
cursor_factory_mock.create.side_effect = [_make_inner_cursor("2024-01-01T00:00:00Z")]
44094409
cursor = ConcurrentPerPartitionCursor(
44104410
cursor_factory=MagicMock(),
4411-
partition_router=ListPartitionRouter(values=["1"], cursor_field="partition_id", config={}, parameters={}),
4411+
partition_router=ListPartitionRouter(
4412+
values=["1"], cursor_field="partition_id", config={}, parameters={}
4413+
),
44124414
stream_name="test_stream",
44134415
stream_namespace=None,
44144416
stream_state={},
@@ -4427,6 +4429,6 @@ def test_given_record_with_bad_cursor_value_the_global_state_parsing_does_not_br
44274429
Record(
44284430
data={"updated_at": ""},
44294431
stream_name="test_stream",
4430-
associated_slice=StreamSlice(partition={"partition_id": "1"}, cursor_slice={})
4432+
associated_slice=StreamSlice(partition={"partition_id": "1"}, cursor_slice={}),
44314433
)
44324434
)

0 commit comments

Comments
 (0)