Skip to content

Commit c34c94c

Browse files
author
The TensorFlow Datasets Authors
committed
Internal change
PiperOrigin-RevId: 670870698
1 parent 68244d3 commit c34c94c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tensorflow_datasets/core/dataset_builders/huggingface_dataset_builder.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,13 @@ def _is_gated(self) -> bool:
291291
@property
292292
def _gated_dataset_warning(self) -> str:
293293
"""The warning message for a gated dataset."""
294-
return (
295-
'WARNING: This dataset is gated. Before using it, make sure to sign'
296-
f' the conditions at: {self.homepage}. Important: access requests are'
297-
' always granted to individual users rather than to entire'
298-
' organizations.'
294+
gated_dataset_warning = (
295+
'WARNING: This dataset is gated. Before using it, make sure '
296+
+ f'to sign the conditions at: {self.homepage}. Important: access'
297+
' requests are always granted to individual users rather than to'
298+
' entire organizations.'
299299
)
300+
return gated_dataset_warning
300301

301302
@property
302303
def _gated_text(self) -> str | None:

0 commit comments

Comments
 (0)