Skip to content

Commit c8e467a

Browse files
fineguyThe TensorFlow Datasets Authors
authored andcommitted
Add visibility descriptions.
PiperOrigin-RevId: 675531492
1 parent aeb3425 commit c8e467a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tensorflow_datasets/core/visibility.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
* `tfds.load`
3737
* `tfds.list_builders`
3838
* `tfds.core.load.list_full_names`
39-
4039
"""
4140

4241
import contextlib
@@ -48,7 +47,11 @@
4847

4948

5049
class DatasetType(enum.Enum):
50+
"""Available visibilities."""
51+
52+
# Open-source TFDS datasets
5153
TFDS_PUBLIC = enum.auto()
54+
# Community datasets (open-source)
5255
COMMUNITY_PUBLIC = enum.auto()
5356

5457
def is_available(self) -> bool:
@@ -105,11 +108,9 @@ def _set_default_visibility() -> None:
105108
# If the script is launched from within a TFDS script, we disable community
106109
# datasets and restrict scripts to only public datasets.
107110
# Accessing community datasets should be explicitly requested.
108-
set_availables(
109-
[
110-
DatasetType.TFDS_PUBLIC,
111-
]
112-
)
111+
set_availables([
112+
DatasetType.TFDS_PUBLIC,
113+
])
113114

114115

115116
app.call_after_init(_set_default_visibility)

0 commit comments

Comments
 (0)