From 0bb0a5815be9bf3ccc6674ffb494a42a024f3c79 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Fri, 19 Jan 2024 11:40:31 +0800 Subject: [PATCH] refactor(amazon/emr): remove unnecessary return in EmrContainerOperatorAsync and Redshift Cluster operators (#1430) * refactor(amazon/emr): remove unnecessary return * refactor(amazon/redshift-cluster): remove unnecessary return --- astronomer/providers/amazon/aws/operators/emr.py | 2 +- .../providers/amazon/aws/operators/redshift_cluster.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/astronomer/providers/amazon/aws/operators/emr.py b/astronomer/providers/amazon/aws/operators/emr.py index 24295e947..c21bfe261 100644 --- a/astronomer/providers/amazon/aws/operators/emr.py +++ b/astronomer/providers/amazon/aws/operators/emr.py @@ -19,4 +19,4 @@ def __init__(self, *args, **kwargs): # type: ignore[no-untyped-def] DeprecationWarning, stacklevel=2, ) - return super().__init__(*args, deferrable=True, **kwargs) + super().__init__(*args, deferrable=True, **kwargs) diff --git a/astronomer/providers/amazon/aws/operators/redshift_cluster.py b/astronomer/providers/amazon/aws/operators/redshift_cluster.py index a7340db61..4e107d83e 100644 --- a/astronomer/providers/amazon/aws/operators/redshift_cluster.py +++ b/astronomer/providers/amazon/aws/operators/redshift_cluster.py @@ -23,7 +23,7 @@ def __init__(self, *args, **kwargs): # type: ignore[no-untyped-def] DeprecationWarning, stacklevel=2, ) - return super().__init__(*args, deferrable=True, **kwargs) + super().__init__(*args, deferrable=True, **kwargs) class RedshiftResumeClusterOperatorAsync(RedshiftResumeClusterOperator): @@ -42,7 +42,7 @@ def __init__(self, *args, **kwargs): # type: ignore[no-untyped-def] DeprecationWarning, stacklevel=2, ) - return super().__init__(*args, deferrable=True, **kwargs) + super().__init__(*args, deferrable=True, **kwargs) class RedshiftPauseClusterOperatorAsync(RedshiftPauseClusterOperator): @@ -61,4 +61,4 @@ def __init__(self, *args, **kwargs): # type: ignore[no-untyped-def] DeprecationWarning, stacklevel=2, ) - return super().__init__(*args, deferrable=True, **kwargs) + super().__init__(*args, deferrable=True, **kwargs)