uranusjr commented on code in PR #57274:
URL: https://github.com/apache/airflow/pull/57274#discussion_r2472164219
##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -739,7 +746,7 @@ def find(
if no_backfills:
qry = qry.where(cls.run_type != DagRunType.BACKFILL_JOB)
- return session.scalars(qry.order_by(cls.logical_date)).all()
+ return cast("list[DagRun]",
session.scalars(qry.order_by(cls.logical_date)).all())
Review Comment:
Why does this need to be casted?
--
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]