Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax #17661

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/dataproviders/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def __iter__(self):
for i, row in enumerate(results):
if i >= self.limit:
break
yield list(row)
yield [val for val in row] # noqa: C416
else:
yield

Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/managers/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = set(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:
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8493,7 +8493,7 @@ def poll_unhandled_workflow_ids(sa_session):
.where(WorkflowInvocation.handler.is_(None))
.order_by(WorkflowInvocation.id.asc())
)
return list(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):
Expand Down
Loading