kaxil commented on a change in pull request #10559:
URL: https://github.com/apache/airflow/pull/10559#discussion_r477254702
##########
File path: airflow/hooks/base_hook.py
##########
@@ -54,7 +53,7 @@ def get_connection(cls, conn_id: str) -> Connection:
:param conn_id: connection id
:return: connection
"""
- conn = random.choice(list(cls.get_connections(conn_id)))
+ conn = random.choice(cls.get_connections(conn_id))
Review comment:
Any reason for removing `list` from here?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]