From 8dcafdfcdddc77fdfd2401757dcbc15bfec76d6b Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Tue, 28 Jun 2022 10:59:00 +0800 Subject: [PATCH] TriggerDagRunOperator.operator_extra_links is attr (#24676) There's absolutely no reason this needs to be a property. And it cannot be since we need to access this at the class level. --- airflow/operators/trigger_dagrun.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/airflow/operators/trigger_dagrun.py b/airflow/operators/trigger_dagrun.py index 4578fd2df818b..8045b5796a8e6 100644 --- a/airflow/operators/trigger_dagrun.py +++ b/airflow/operators/trigger_dagrun.py @@ -87,11 +87,7 @@ class TriggerDagRunOperator(BaseOperator): template_fields: Sequence[str] = ("trigger_dag_id", "trigger_run_id", "execution_date", "conf") template_fields_renderers = {"conf": "py"} ui_color = "#ffefeb" - - @property - def operator_extra_links(self): - """Return operator extra links""" - return [TriggerDagRunLink()] + operator_extra_links = [TriggerDagRunLink()] def __init__( self,