kaxil commented on code in PR #52234:
URL: https://github.com/apache/airflow/pull/52234#discussion_r2190958855
##########
airflow-core/src/airflow/models/renderedtifields.py:
##########
@@ -49,9 +49,10 @@
from airflow.models.taskinstance import TaskInstance, TaskInstanceKey
from airflow.sdk.types import Operator
+ from airflow.serialization.serialized_objects import SerializedBaseOperator
-def get_serialized_template_fields(task: Operator):
+def get_serialized_template_fields(task: Operator | SerializedBaseOperator):
Review Comment:
Should we just create an internal type for `Operator |
SerializedBaseOperator` to avoid repetitions for type hints and isintance
checks?
--
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]