Skip to content

Commit 3e608b5

Browse files
committed
Annotate dataset_action_tuples return type
Match the newly typed local; the property returns a flat list of (action, role_id) tuples.
1 parent 1cf13e8 commit 3e608b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/galaxy/model/dataset_collections/adapters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def element_object(self) -> Self:
229229
return self
230230

231231
@property
232-
def dataset_action_tuples(self):
232+
def dataset_action_tuples(self) -> list[tuple[str | None, int | None]]:
233233
tuples: list[tuple[str | None, int | None]] = []
234234
for hda in self.dataset_instances:
235235
tuples.extend((permission.action, permission.role_id) for permission in hda.dataset.actions)

0 commit comments

Comments
 (0)