Skip to content

Commit 751d1f3

Browse files
committed
mypy
1 parent 57cbdd9 commit 751d1f3

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
@@ -2400,7 +2400,7 @@ def create_http_requester(
24002400
request_body_data=model.request_body_data,
24012401
request_body_json=model.request_body_json,
24022402
request_headers=model.request_headers,
2403-
request_parameters=model.request_parameters,
2403+
request_parameters=model.request_parameters, # type: ignore # QueryProperties have been removed in `create_simple_retriever`
24042404
query_properties_key=query_properties_key,
24052405
config=config,
24062406
parameters=model.parameters or {},
@@ -3221,7 +3221,7 @@ def _get_url(req: Requester) -> str:
32213221
# Removes QueryProperties components from the interpolated mappings because it has been designed
32223222
# to be used by the SimpleRetriever and will be resolved from the provider from the slice directly
32233223
# instead of through jinja interpolation
3224-
if isinstance(model.requester.request_parameters, Mapping):
3224+
if hasattr(model.requester, "request_parameters") and isinstance(model.requester.request_parameters, Mapping):
32253225
model.requester.request_parameters = self._remove_query_properties(
32263226
model.requester.request_parameters
32273227
)

0 commit comments

Comments
 (0)