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: 633694594
  • Loading branch information
SeqIO Team authored and SeqIO committed May 14, 2024
1 parent 444a311 commit 20e5f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seqio/dataset_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1855,9 +1855,9 @@ 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))
return sorted(set(sum(sub_tasks, self._tasks)), key=lambda t: t.name)

@property
def total_rate(self) -> float:
Expand Down

0 comments on commit 20e5f45

Please sign in to comment.