Skip to content

Commit

Permalink
Set return type of tasks property to list[Task] instead of Sequence[T…
Browse files Browse the repository at this point in the history
…ask]

PiperOrigin-RevId: 633363676
  • Loading branch information
SeqIO Team authored and SeqIO committed May 14, 2024
1 parent 444a311 commit d4a29f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seqio/dataset_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ def source_info(self) -> Optional[SourceInfo]:
return self._source_info

@property
def tasks(self) -> Sequence[Task]:
def tasks(self) -> list[Task]:
sub_tasks = (mix.tasks for mix in self._sub_mixtures)
return list(sorted(set(sum(sub_tasks, self._tasks)), key=lambda t: t.name))

Expand Down

0 comments on commit d4a29f1

Please sign in to comment.