diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index dc7aedc3b980b..b1e621808caa6 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -44,7 +44,7 @@ "aiobotocore>=2.13.0", "aws_xray_sdk>=2.12.0", "moto[cloudformation,glue]>=5.0.0", - "mypy-boto3-appflow>=1.34.0", + "mypy-boto3-appflow>=1.34.0,<1.35.39", "mypy-boto3-rds>=1.34.90", "mypy-boto3-redshift-data>=1.34.0", "mypy-boto3-s3>=1.34.90", diff --git a/providers/src/airflow/providers/amazon/aws/hooks/appflow.py b/providers/src/airflow/providers/amazon/aws/hooks/appflow.py index e68637e50dc0b..5ef994917926b 100644 --- a/providers/src/airflow/providers/amazon/aws/hooks/appflow.py +++ b/providers/src/airflow/providers/amazon/aws/hooks/appflow.py @@ -117,9 +117,9 @@ def update_flow_filter(self, flow_name: str, filter_tasks, set_trigger_ondemand: self.conn.update_flow( flowName=response["flowName"], - destinationFlowConfigList=response["destinationFlowConfigList"], # type: ignore[arg-type] - sourceFlowConfig=response["sourceFlowConfig"], # type: ignore[arg-type] - triggerConfig=response["triggerConfig"], # type: ignore[arg-type] + destinationFlowConfigList=response["destinationFlowConfigList"], + sourceFlowConfig=response["sourceFlowConfig"], + triggerConfig=response["triggerConfig"], description=response.get("description", "Flow description."), - tasks=tasks, # type: ignore[arg-type] + tasks=tasks, ) diff --git a/providers/src/airflow/providers/amazon/provider.yaml b/providers/src/airflow/providers/amazon/provider.yaml index 416e97ad02ccd..2e49d8845b20c 100644 --- a/providers/src/airflow/providers/amazon/provider.yaml +++ b/providers/src/airflow/providers/amazon/provider.yaml @@ -143,7 +143,9 @@ devel-dependencies: - aiobotocore>=2.13.0 - aws_xray_sdk>=2.12.0 - moto[cloudformation,glue]>=5.0.0 - - mypy-boto3-appflow>=1.34.0 + # See https://github.com/apache/airflow/pull/42954#discussion_r1817993084 + # remove upper limit when the typing issue is fixed + - mypy-boto3-appflow>=1.34.0,<1.35.39 - mypy-boto3-rds>=1.34.90 - mypy-boto3-redshift-data>=1.34.0 - mypy-boto3-s3>=1.34.90