diff --git a/lib/galaxy/datatypes/dataproviders/dataset.py b/lib/galaxy/datatypes/dataproviders/dataset.py index 1218349491ff..667e74c06723 100644 --- a/lib/galaxy/datatypes/dataproviders/dataset.py +++ b/lib/galaxy/datatypes/dataproviders/dataset.py @@ -749,7 +749,7 @@ def __iter__(self): for i, row in enumerate(results): if i >= self.limit: break - yield [val for val in row] + yield [val for val in row] # noqa: C416 else: yield diff --git a/lib/galaxy/managers/libraries.py b/lib/galaxy/managers/libraries.py index 45c1c582a074..3f6b84de5d35 100644 --- a/lib/galaxy/managers/libraries.py +++ b/lib/galaxy/managers/libraries.py @@ -155,7 +155,7 @@ def list(self, trans, deleted: Optional[bool] = False) -> Tuple[Query, Dict[str, """ is_admin = trans.user_is_admin library_access_action = trans.app.security_agent.permitted_actions.LIBRARY_ACCESS.action - restricted_library_ids = {id for id in get_library_ids(trans.sa_session, library_access_action)} + restricted_library_ids = {id for id in get_library_ids(trans.sa_session, library_access_action)} # noqa: C416 prefetched_ids = {"restricted_library_ids": restricted_library_ids} if is_admin: diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index b1b276afe7ed..5144cdf31473 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -8493,7 +8493,7 @@ def poll_unhandled_workflow_ids(sa_session): .where(WorkflowInvocation.handler.is_(None)) .order_by(WorkflowInvocation.id.asc()) ) - return [wid for wid in sa_session.scalars(stmt)] + return [wid for wid in sa_session.scalars(stmt)] # noqa: C416 @staticmethod def poll_active_workflow_ids(engine, scheduler=None, handler=None):