Skip to content

Commit 54f7b0f

Browse files
author
maxime.c
committed
mypy
1 parent 197a071 commit 54f7b0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ def create_default_stream(
19511951
self, model: DeclarativeStreamModel, config: Config, is_parent: bool = False, **kwargs: Any
19521952
) -> AbstractStream:
19531953
primary_key = model.primary_key.__root__ if model.primary_key else None
1954-
self._migrate_state(config, model)
1954+
self._migrate_state(model, config)
19551955

19561956
partition_router = self._build_stream_slicer_from_partition_router(
19571957
model.retriever,
@@ -2113,7 +2113,7 @@ def create_default_stream(
21132113
supports_file_transfer=hasattr(model, "file_uploader") and bool(model.file_uploader),
21142114
)
21152115

2116-
def _migrate_state(self, config, model):
2116+
def _migrate_state(self, model: DeclarativeStreamModel, config: Config):
21172117
stream_state = self._connector_state_manager.get_stream_state(
21182118
stream_name=model.name, namespace=None
21192119
)
@@ -2200,7 +2200,7 @@ def _build_concurrent_cursor(
22002200
config: Config,
22012201
) -> Cursor:
22022202
stream_name = model.name or ""
2203-
stream_state = self._connector_state_manager.get_stream_state(model.name, None)
2203+
stream_state = self._connector_state_manager.get_stream_state(stream_name, None)
22042204

22052205
if (
22062206
model.incremental_sync

0 commit comments

Comments
 (0)