1
0
mirror of synced 2026-01-07 09:05:45 -05:00

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:
Joe Reuter
2023-07-19 15:08:35 +02:00
committed by GitHub
parent db16853fd8
commit 78728410f4
3 changed files with 212 additions and 176 deletions

View File

@@ -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