Skip to content

Commit d739e47

Browse files
author
maxime.c
committed
fix mypy
1 parent 1cd879f commit d739e47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ def create_concurrent_cursor_from_datetime_based_cursor(
12831283
# * The ComponentDefinition comes from the manifest as a dict in which case we have `$parameters`
12841284
# We should change those interfaces to use the model once we clean up the code in CDS at which point the parameter propagation should happen as part of the ModelToComponentFactory.
12851285
if "$parameters" not in component_definition and "parameters" in component_definition:
1286-
component_definition["$parameters"] = component_definition.get("parameters")
1286+
component_definition["$parameters"] = component_definition.get("parameters") # type: ignore # This is a dict
12871287
datetime_based_cursor_model = model_type.parse_obj(component_definition)
12881288

12891289
if not isinstance(datetime_based_cursor_model, DatetimeBasedCursorModel):
@@ -1593,7 +1593,7 @@ def create_concurrent_cursor_from_perpartition_cursor(
15931593
# * The ComponentDefinition comes from the manifest as a dict in which case we have `$parameters`
15941594
# We should change those interfaces to use the model once we clean up the code in CDS at which point the parameter propagation should happen as part of the ModelToComponentFactory.
15951595
if "$parameters" not in component_definition and "parameters" in component_definition:
1596-
component_definition["$parameters"] = component_definition.get("parameters")
1596+
component_definition["$parameters"] = component_definition.get("parameters") # type: ignore # This is a dict
15971597
datetime_based_cursor_model = model_type.parse_obj(component_definition)
15981598

15991599
if not isinstance(datetime_based_cursor_model, DatetimeBasedCursorModel):

0 commit comments

Comments
 (0)