uranusjr commented on code in PR #57810:
URL: https://github.com/apache/airflow/pull/57810#discussion_r2493095085
##########
airflow-core/src/airflow/models/pool.py:
##########
@@ -69,7 +70,7 @@ def __repr__(self):
@provide_session
def get_pools(session: Session = NEW_SESSION) -> list[Pool]:
"""Get all pools."""
- return session.scalars(select(Pool)).all()
+ return list(session.scalars(select(Pool)).all())
Review Comment:
Or just change the return annotation to Sequence[Pool]?
--
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]