dabla commented on code in PR #55068:
URL: https://github.com/apache/airflow/pull/55068#discussion_r2802774499
##########
airflow-core/src/airflow/triggers/base.py:
##########
@@ -32,11 +32,24 @@
model_serializer,
)
+from airflow.sdk.definitions._internal.templater import Templater
from airflow.utils.log.logging_mixin import LoggingMixin
from airflow.utils.state import TaskInstanceState
log = structlog.get_logger(logger_name=__name__)
+if TYPE_CHECKING:
+ from typing import TypeAlias
+
+ import jinja2
+
+ from airflow.models.mappedoperator import MappedOperator
+ from airflow.models.taskinstance import TaskInstance
+ from airflow.sdk.definitions.context import Context
+ from airflow.serialization.serialized_objects import SerializedBaseOperator
+
+ Operator: TypeAlias = MappedOperator | SerializedBaseOperator
Review Comment:
Couldn't find it so it kept it as it is for now.
--
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]