From 5a8ac9c5d185e065568fed5300fd116cee46c3e1 Mon Sep 17 00:00:00 2001 From: The TensorFlow Datasets Authors Date: Tue, 22 Jul 2025 01:31:29 -0700 Subject: [PATCH] Cleanup. PiperOrigin-RevId: 785752117 --- tensorflow_datasets/core/subsplits_utils.py | 4 ++-- tensorflow_datasets/testing/dataset_builder_testing.py | 4 ++-- tensorflow_datasets/testing/test_utils.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tensorflow_datasets/core/subsplits_utils.py b/tensorflow_datasets/core/subsplits_utils.py index 5b362750d9c..f98b17efd19 100644 --- a/tensorflow_datasets/core/subsplits_utils.py +++ b/tensorflow_datasets/core/subsplits_utils.py @@ -119,7 +119,7 @@ def even_splits( not evenly divisible by `n`. If `False`, examples are distributed evenly across subsplits, starting by the first. For example, if there is 11 examples with `n=3`, splits will contain `[4, 4, 3]` examples - respectivelly. + respectively. Returns: The list of subsplits. Those splits can be combined together (with @@ -169,7 +169,7 @@ def split_for_jax_process( not evenly divisible by `n`. If `False`, examples are distributed evenly across subsplits, starting by the first. For example, if there is 11 examples with `n=3`, splits will contain `[4, 4, 3]` examples - respectivelly. + respectively. Returns: subsplit: The sub-split of the given `split` for the current diff --git a/tensorflow_datasets/testing/dataset_builder_testing.py b/tensorflow_datasets/testing/dataset_builder_testing.py index 895c57c5b6b..3bc7c7d8b60 100644 --- a/tensorflow_datasets/testing/dataset_builder_testing.py +++ b/tensorflow_datasets/testing/dataset_builder_testing.py @@ -191,7 +191,7 @@ def setUp(self): # The `dl_manager.download` and `dl_manager.download_and_extract` are # patched to record the urls in `_download_urls`. # Calling `dl_manager.download_checksums` stop the url - # registration (as checksums are stored remotelly) + # registration (as checksums are stored remotely) # `_test_checksums` validates the recorded urls. self._download_urls = set() self._stop_record_download = False @@ -291,7 +291,7 @@ def test_tags_are_valid(self): def _add_url(self, url_or_urls): if self._stop_record_download: # Stop record the checksums if dl_manager.download_checksums has been - # called (as checksums may be stored remotelly) + # called (as checksums may be stored remotely). return if isinstance(url_or_urls, download.resource.Resource): self._download_urls.add(url_or_urls.url) diff --git a/tensorflow_datasets/testing/test_utils.py b/tensorflow_datasets/testing/test_utils.py index 45cbcf9e637..ef657f8e938 100644 --- a/tensorflow_datasets/testing/test_utils.py +++ b/tensorflow_datasets/testing/test_utils.py @@ -147,7 +147,7 @@ def mock(self): with self._mock() as m: yield m self._tmp_dir = None - # TODO(epot): recursivelly record all + # TODO(epot): recursively record all. def _to_tmp(self, p, *, with_state: bool = False): """Normalize the path by returning `tmp_path / p`."""