Skip to content

Commit be03fe5

Browse files
author
Oleksandr Bazarnov
committed
formatted
1 parent 532f278 commit be03fe5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

airbyte_cdk/connector_builder/test_reader/helpers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def handle_record_message(
600600
# -------
601601

602602

603-
def get_airbyte_cdk_from_message(json_message: Dict[str, JsonType]) -> dict:
603+
def get_airbyte_cdk_from_message(json_message: Dict[str, JsonType]) -> dict: # type: ignore
604604
"""
605605
Retrieves the "airbyte_cdk" dictionary from the provided JSON message.
606606
@@ -626,7 +626,7 @@ def get_airbyte_cdk_from_message(json_message: Dict[str, JsonType]) -> dict:
626626
return airbyte_cdk
627627

628628

629-
def get_stream_from_airbyte_cdk(airbyte_cdk: dict) -> dict:
629+
def get_stream_from_airbyte_cdk(airbyte_cdk: dict) -> dict: # type: ignore
630630
"""
631631
Retrieves the "stream" dictionary from the provided "airbyte_cdk" dictionary.
632632
@@ -651,14 +651,14 @@ def get_stream_from_airbyte_cdk(airbyte_cdk: dict) -> dict:
651651
return stream
652652

653653

654-
def get_auxiliary_request_title_prefix(stream: dict) -> str:
654+
def get_auxiliary_request_title_prefix(stream: dict) -> str: # type: ignore
655655
"""
656656
Generates a title prefix based on the stream type.
657657
"""
658658
return "Parent stream: " if stream.get("is_substream", False) else ""
659659

660660

661-
def get_http_property_from_message(json_message: Dict[str, JsonType]) -> dict:
661+
def get_http_property_from_message(json_message: Dict[str, JsonType]) -> dict: # type: ignore
662662
"""
663663
Retrieves the "http" dictionary from the provided JSON message.
664664
@@ -682,7 +682,7 @@ def get_http_property_from_message(json_message: Dict[str, JsonType]) -> dict:
682682
return http
683683

684684

685-
def get_auxiliary_request_type(stream: dict, http: dict) -> str:
685+
def get_auxiliary_request_type(stream: dict, http: dict) -> str: # type: ignore
686686
"""
687687
Determines the type of the auxiliary request based on the stream and HTTP properties.
688688
"""

airbyte_cdk/connector_builder/test_reader/message_grouper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_message_groups(
9191
current_page_request: Optional[HttpRequest] = None
9292
current_page_response: Optional[HttpResponse] = None
9393
latest_state_message: Optional[Dict[str, Any]] = None
94-
slice_auxiliary_requests: Optional[List[AuxiliaryRequest]] = []
94+
slice_auxiliary_requests: List[AuxiliaryRequest] = []
9595

9696
while records_count < limit and (message := next(messages, None)):
9797
json_message = airbyte_message_to_json(message)

0 commit comments

Comments
 (0)