Skip to content

Commit 1d862c1

Browse files
committed
CDK: fix mypy
Signed-off-by: Artem Inzhyyants <[email protected]>
1 parent bc31f47 commit 1d862c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ def create_concurrent_cursor_from_incrementing_count_cursor(
12301230

12311231
interpolated_start_value = (
12321232
InterpolatedString.create(
1233-
incrementing_count_cursor_model.start_value,
1233+
incrementing_count_cursor_model.start_value, # type: ignore
12341234
parameters=incrementing_count_cursor_model.parameters or {},
12351235
)
12361236
if incrementing_count_cursor_model.start_value
@@ -1703,15 +1703,15 @@ def create_declarative_stream(
17031703
elif model.incremental_sync and isinstance(
17041704
model.incremental_sync, IncrementingCountCursorModel
17051705
):
1706-
cursor_model = model.incremental_sync
1706+
cursor_model: IncrementingCountCursorModel = model.incremental_sync # type: ignore
17071707

17081708
start_time_option = (
17091709
self._create_component_from_model(
1710-
cursor_model.start_value_option,
1710+
cursor_model.start_value_option, # type: ignore: mypy still thinks cursor_model of type DatetimeBasedCursor
17111711
config,
17121712
parameters=cursor_model.parameters or {},
17131713
)
1714-
if cursor_model.start_value_option
1714+
if cursor_model.start_value_option # type: ignore: mypy still thinks cursor_model of type DatetimeBasedCursor
17151715
else None
17161716
)
17171717

0 commit comments

Comments
 (0)