Skip to content

Commit bc31f47

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

airbyte_cdk/sources/declarative/concurrent_declarative_source.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ def _group_streams(
257257
stream_slicer=declarative_stream.retriever.stream_slicer,
258258
)
259259
else:
260-
cursor: ConcurrentCursor
260+
# cursor: ConcurrentCursor
261261
if (
262-
incremental_sync_component_definition.get("type")
262+
incremental_sync_component_definition
263+
and incremental_sync_component_definition.get("type")
263264
== IncrementingCountCursorModel.__name__
264265
):
265266
cursor = self._constructor.create_concurrent_cursor_from_incrementing_count_cursor(
266267
model_type=IncrementingCountCursorModel,
267-
component_definition=incremental_sync_component_definition,
268-
# type: ignore # Not None because of the if condition above
268+
component_definition=incremental_sync_component_definition, # type: ignore # Not None because of the if condition above
269269
stream_name=declarative_stream.name,
270270
stream_namespace=declarative_stream.namespace,
271271
config=config or {},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _get_sync_start(
8181
start: Optional[int],
8282
) -> int:
8383
sync_start = start if start is not None else self.zero_value
84-
prev_sync_low_water_mark = (
84+
prev_sync_low_water_mark: Optional[int] = (
8585
stream_state[cursor_field.cursor_field_key]
8686
if cursor_field.cursor_field_key in stream_state
8787
else None

0 commit comments

Comments
 (0)