dabla commented on code in PR #47069:
URL: https://github.com/apache/airflow/pull/47069#discussion_r1972243195


##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/msgraph.py:
##########
@@ -60,7 +60,7 @@ def execute_callable(
     message: str,
 ) -> Any:
     try:
-        return func(value, **context)  # type: ignore
+        return func(value, **dict(context.items()))  # type: ignore

Review Comment:
   I discovered this because I changed the method signatures of the 
result_processor and event_handlers so that the context became a kwargs 
parameter, just like it's the case when invoking a callable with 
PythonOperator, I wanted to have the same idea behind.



-- 
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]

Reply via email to