Skip to content

Commit

Permalink
Remove unused type comment that upsets mypy (#10877)
Browse files Browse the repository at this point in the history
Something slightly odd is happening here.

In #10729 it passed the mypy tests with this in place, but now if I make
a change to this file (or to scheduler_job.py, which imports DagRun) I
get an error _with_ this.

GitOrigin-RevId: 5cc8e9826bef303723b82ee28f020a26506dac7b
  • Loading branch information
ashb authored and Cloud Composer Team committed Nov 25, 2021
1 parent 7f296c6 commit 24095d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/models/dagrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class DagRun(Base, LoggingMixin):

task_instances = relationship(
TI,
primaryjoin=and_(TI.dag_id == dag_id, TI.execution_date == execution_date), # type: ignore
primaryjoin=and_(TI.dag_id == dag_id, TI.execution_date == execution_date),
foreign_keys=(dag_id, execution_date),
backref=backref('dag_run', uselist=False),
)
Expand Down

0 comments on commit 24095d6

Please sign in to comment.