Skip to content

Commit 079b5ba

Browse files
texasmichelleSeqIO
authored andcommitted
Internal change.
PiperOrigin-RevId: 590462655
1 parent 8012bf6 commit 079b5ba

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

seqio/experimental.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
"""Experimental utilities for SeqIO."""
16+
1617
import functools
1718
import inspect
1819
from typing import Callable, Iterable, Mapping, Optional, Sequence
@@ -86,6 +87,7 @@ def _no_op_mixture_registry_get(*args, **kwargs):
8687

8788

8889
def disable_registry():
90+
"""Disables the seqio TaskRegistry and MixtureRegistry."""
8991
_enfore_empty_registries()
9092
dataset_providers.TaskRegistry.add = _no_op_task_registry_add
9193
dataset_providers.TaskRegistry.add_provider = _no_op_task_registry_add

seqio/experimental_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"""Tests for seqio.preprocessors."""
1616

1717
import contextlib
18+
from unittest import mock
19+
1820
from absl.testing import absltest
1921
from seqio import dataset_providers
2022
from seqio import experimental
@@ -984,5 +986,6 @@ def test_mixture_registry_get_error(self):
984986
MixtureRegistry.get('dummy_mixture')
985987

986988

989+
987990
if __name__ == '__main__':
988991
absltest.main()

0 commit comments

Comments
 (0)