ferruzzi commented on code in PR #62649:
URL: https://github.com/apache/airflow/pull/62649#discussion_r2874266882


##########
airflow-core/src/airflow/utils/helpers.py:
##########
@@ -295,6 +296,29 @@ def is_empty(x):
     return val
 
 
+def filter_kwargs(callable_obj: Callable[..., Any], kwargs: dict) -> dict:
+    """
+    Filter kwargs to only include parameters the callable accepts.

Review Comment:
   You think?  If we end up injecting other things it'll unexpectedly break 
user code, this seems much safer to me and lets the user dictate the contract 
for their own code.



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