This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 46862cfa94 Update mypy-boto3-appflow dependency (#32930)
46862cfa94 is described below
commit 46862cfa948cbea885d691ad662109bfcaf2fc8a
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Aug 6 13:23:04 2023 +0200
Update mypy-boto3-appflow dependency (#32930)
After https://github.com/youtype/mypy_boto3_builder/issues/209
has been fixed and mypy-boto3-appflow released, we can now
remove the limit and intrduce lower-bound limit for it.
---
airflow/providers/amazon/aws/hooks/appflow.py | 4 ++--
airflow/providers/amazon/provider.yaml | 4 +---
generated/provider_dependencies.json | 2 +-
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/airflow/providers/amazon/aws/hooks/appflow.py
b/airflow/providers/amazon/aws/hooks/appflow.py
index f976f40692..71e7ddd1c7 100644
--- a/airflow/providers/amazon/aws/hooks/appflow.py
+++ b/airflow/providers/amazon/aws/hooks/appflow.py
@@ -23,7 +23,7 @@ from airflow.providers.amazon.aws.hooks.base_aws import
AwsBaseHook
if TYPE_CHECKING:
from mypy_boto3_appflow.client import AppflowClient
- from mypy_boto3_appflow.type_defs import TaskTypeDef
+ from mypy_boto3_appflow.type_defs import TaskOutputTypeDef, TaskTypeDef
class AppflowHook(AwsBaseHook):
@@ -90,7 +90,7 @@ class AppflowHook(AwsBaseHook):
"""
response = self.conn.describe_flow(flowName=flow_name)
connector_type = response["sourceFlowConfig"]["connectorType"]
- tasks: list[TaskTypeDef] = []
+ tasks: list[TaskTypeDef | TaskOutputTypeDef] = []
# cleanup old filter tasks
for task in response["tasks"]:
diff --git a/airflow/providers/amazon/provider.yaml
b/airflow/providers/amazon/provider.yaml
index 5e1a8ad103..9986987220 100644
--- a/airflow/providers/amazon/provider.yaml
+++ b/airflow/providers/amazon/provider.yaml
@@ -78,9 +78,7 @@ dependencies:
- sqlalchemy_redshift>=0.8.6
- mypy-boto3-rds>=1.24.0
- mypy-boto3-redshift-data>=1.24.0
- # exclude 1.28.12 and 1.28.15 as it causes strange typing inconsistency
- # https://github.com/youtype/mypy_boto3_builder/issues/209
- - mypy-boto3-appflow>=1.24.0,<1.28.12
+ - mypy-boto3-appflow>=1.28.16
- asgiref
- mypy-boto3-s3>=1.24.0
diff --git a/generated/provider_dependencies.json
b/generated/provider_dependencies.json
index 9929793626..7300c0fc39 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -28,7 +28,7 @@
"asgiref",
"boto3>=1.24.0",
"jsonpath_ng>=1.5.3",
- "mypy-boto3-appflow>=1.24.0,<1.28.12",
+ "mypy-boto3-appflow>=1.28.16",
"mypy-boto3-rds>=1.24.0",
"mypy-boto3-redshift-data>=1.24.0",
"mypy-boto3-s3>=1.24.0",