Repository navigation
Fix unreachable code errors in yandex provider - #53453
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
|
i think you can remove this condition itself, https://github.com/apache/airflow/pull/53453/files#diff-f2fbaeacd7184aebb7503aa6285edf361283cb90c932e7709c01ab8dacc23d52R148, because the dataproc accepts None aswell https://github.com/yandex-cloud/python-sdk/blob/master/yandexcloud/_wrappers/dataproc/__init__.py#L68 So addting None type to services args seems fine. |
I’ve removed the condition. |
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
related: #53395
mypy warning:
providers/yandex/src/airflow/providers/yandex/operators/dataproc.py:149: error: Statement is unreachable [unreachable]caused by:
services type hint:
Iterable[str]was not allowed beNone. mypy thinkif services is None:condition always false.fix: add type hint
None^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.