uranusjr commented on code in PR #72589:
URL: https://github.com/apache/airflow/pull/72589#discussion_r3964650360


##########
task-sdk/src/airflow/sdk/bases/operator.py:
##########
@@ -270,6 +270,22 @@ def partial(**kwargs):
 }
 
 
+def _get_operator_defaults(operator_class: type[BaseOperator]) -> dict[str, 
Any]:
+    """Get default values for an operator class's BaseOperator arguments."""
+    operator_defaults = OPERATOR_DEFAULTS.copy()
+    operator_classes = operator_class.mro()
+    for operator_base in reversed(operator_classes[: 
operator_classes.index(BaseOperator)]):
+        init = operator_base.__dict__.get("__init__")
+        if init is None:

Review Comment:
   ```suggestion
           if (init := operator_base.__dict__.get("__init__")) is None:
   ```



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