Skip to content

Commit

Permalink
CDK: fix mypy
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
  • Loading branch information
artem1205 committed Feb 24, 2025
1 parent bc31f47 commit 1d862c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def create_concurrent_cursor_from_incrementing_count_cursor(

interpolated_start_value = (
InterpolatedString.create(
incrementing_count_cursor_model.start_value,
incrementing_count_cursor_model.start_value, # type: ignore
parameters=incrementing_count_cursor_model.parameters or {},
)
if incrementing_count_cursor_model.start_value
Expand Down Expand Up @@ -1703,15 +1703,15 @@ def create_declarative_stream(
elif model.incremental_sync and isinstance(
model.incremental_sync, IncrementingCountCursorModel
):
cursor_model = model.incremental_sync
cursor_model: IncrementingCountCursorModel = model.incremental_sync # type: ignore

start_time_option = (
self._create_component_from_model(
cursor_model.start_value_option,
cursor_model.start_value_option, # type: ignore: mypy still thinks cursor_model of type DatetimeBasedCursor
config,
parameters=cursor_model.parameters or {},
)
if cursor_model.start_value_option
if cursor_model.start_value_option # type: ignore: mypy still thinks cursor_model of type DatetimeBasedCursor
else None
)

Expand Down

0 comments on commit 1d862c1

Please sign in to comment.