ferruzzi commented on code in PR #34890:
URL: https://github.com/apache/airflow/pull/34890#discussion_r1358802910
##########
airflow/providers/amazon/aws/operators/lambda_function.py:
##########
@@ -152,7 +150,7 @@ def execute_complete(self, context: Context, event:
dict[str, Any] | None = None
return event["function_arn"]
-class LambdaInvokeFunctionOperator(BaseOperator):
+class LambdaInvokeFunctionOperator(AwsBaseOperator[LambdaHook]):
Review Comment:
I'll admit this format for the inheritence is new to me and I am trying to
read up on how it's doing what it does, but it appears that the value inside
the square brackets here is always the same as the value being assigned to
`aws_hook_class` within the Operator. I don't suppose there is a way to
simplify that so you don't need both?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]