dabla commented on code in PR #47069:
URL: https://github.com/apache/airflow/pull/47069#discussion_r1972233994
##########
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:
Hello Ash, I think since Airflow 2.10.4 when you try to unpack the Context
it started showing deprecation warnings, which is a bit annoying as in this
case it will generate a lot of deprecation warnings for each MSGraph call,
hence why I call the items() method of the Context and then copy it into a
regular dict before doing the unpacking. Maybe there is a better way to avoid
this?
--
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]