From 6283fc9215c06755c7cb7779daeae11d19a4349e Mon Sep 17 00:00:00 2001 From: SeqIO Team Date: Tue, 14 May 2024 06:40:37 -0700 Subject: [PATCH] Set return type of tasks property to list[Task] instead of Sequence[Task] PiperOrigin-RevId: 633567052 --- seqio/dataset_providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seqio/dataset_providers.py b/seqio/dataset_providers.py index eda91545..79b53410 100644 --- a/seqio/dataset_providers.py +++ b/seqio/dataset_providers.py @@ -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: