Skip to content

Commit

Permalink
TriggerDagRunOperator.operator_extra_links is attr (#24676)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
uranusjr committed Jun 28, 2022
1 parent 48ceda2 commit 8dcafdf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions airflow/operators/trigger_dagrun.py
Expand Up @@ -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,
Expand Down

0 comments on commit 8dcafdf

Please sign in to comment.