Dev-iL commented on code in PR #58062:
URL: https://github.com/apache/airflow/pull/58062#discussion_r2517706951


##########
airflow-core/src/airflow/models/serialized_dag.py:
##########
@@ -514,7 +514,7 @@ def get_latest_serialized_dags(
             )
             .where(cls.dag_id.in_(dag_ids))
         ).all()
-        return latest_serdags or []
+        return list(latest_serdags)

Review Comment:
   Consider changing the return type of the method to 
`Iterable[SerializedDagModel]` instead of a (potentially unnecessary) cast.



-- 
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]

Reply via email to