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.

(cherry picked from commit 8dcafdf)
  • Loading branch information
uranusjr authored and ephraimbuddy committed Aug 15, 2022
1 parent d9ca589 commit 8a95092
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions airflow/operators/trigger_dagrun.py
Original file line number Diff line number Diff line change
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 8a95092

Please sign in to comment.