Skip to content

Commit

Permalink
refactor(amazon/emr): remove unnecessary return in EmrContainerOperat…
Browse files Browse the repository at this point in the history
…orAsync and Redshift Cluster operators (#1430)

* refactor(amazon/emr): remove unnecessary return

* refactor(amazon/redshift-cluster): remove unnecessary return
  • Loading branch information
Lee-W authored Jan 19, 2024
1 parent b697ecc commit 0bb0a58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion astronomer/providers/amazon/aws/operators/emr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 3 additions & 3 deletions astronomer/providers/amazon/aws/operators/redshift_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand All @@ -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)

0 comments on commit 0bb0a58

Please sign in to comment.