From 4cf232bf54f3a4431a7f61b1b8f7e25fa279b0f9 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 1 Jun 2024 11:20:55 +0200 Subject: [PATCH] Limit yandex provider to avoid mypy errors The 0.291.0 version of yandex provider introduced mypy typing that conflicts with the way yandex provider uses it and should be fixed See https://github.com/yandex-cloud/python-sdk/issues/106 --- airflow/providers/yandex/provider.yaml | 5 ++++- generated/provider_dependencies.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/airflow/providers/yandex/provider.yaml b/airflow/providers/yandex/provider.yaml index 71b322993fa23..70f7a871bde94 100644 --- a/airflow/providers/yandex/provider.yaml +++ b/airflow/providers/yandex/provider.yaml @@ -53,7 +53,10 @@ dependencies: - apache-airflow>=2.7.0 # The 0.289 and 0.290 versions have broken dataproc support # See https://github.com/yandex-cloud/python-sdk/issues/103 - - yandexcloud>=0.278.0,!=0.289.0,!=0.290.0 + # the 0.291.0 version of yandex provider introduced mypy typing + # that conflicts with the way yandex provider uses it and should be fixed + # See https://github.com/yandex-cloud/python-sdk/issues/106 + - yandexcloud>=0.278.0,!=0.289.0,!=0.290.0,<0.292.0 - yandex-query-client>=0.1.4 integrations: diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index 2dd34a2a77016..71c1f13cdb239 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -1299,7 +1299,7 @@ "deps": [ "apache-airflow>=2.7.0", "yandex-query-client>=0.1.4", - "yandexcloud>=0.278.0,!=0.289.0,!=0.290.0" + "yandexcloud>=0.278.0,!=0.289.0,!=0.290.0,<0.292.0" ], "devel-deps": [], "plugins": [],