Low code CDK: Fix mypy errors (#28386)
* ingore unit tests in mypy check * Update airbyte-cdk/python/bin/run-mypy-on-modified-files.sh Co-authored-by: Alexandre Girard <alexandre@airbyte.io> * work through mypy errors * fix a bunch of stuff * fix more type hints * fix model_to_component_factory types * format * ignore list instead of allow list --------- Co-authored-by: Alexandre Girard <alexandre@airbyte.io>
This commit is contained in:
@@ -101,7 +101,7 @@ def test_simple_retriever_full(mock_http_stream):
|
||||
assert retriever.stream_slices() == stream_slices
|
||||
|
||||
assert retriever._last_response is None
|
||||
assert retriever._records_from_last_response is None
|
||||
assert retriever._records_from_last_response == []
|
||||
assert retriever.parse_response(response, stream_state={}) == records
|
||||
assert retriever._last_response == response
|
||||
assert retriever._records_from_last_response == records
|
||||
@@ -185,7 +185,7 @@ def test_simple_retriever_with_request_response_log_last_records(mock_http_strea
|
||||
)
|
||||
|
||||
assert retriever._last_response is None
|
||||
assert retriever._records_from_last_response is None
|
||||
assert retriever._records_from_last_response == []
|
||||
assert retriever.parse_response(response, stream_state={}) == request_response_logs
|
||||
assert retriever._last_response == response
|
||||
assert retriever._records_from_last_response == request_response_logs
|
||||
|
||||
Reference in New Issue
Block a user