File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
tensorflow_datasets/core/dataset_builders Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -334,8 +334,16 @@ def _info(self) -> dataset_info_lib.DatasetInfo:
334
334
ds_description = self ._get_text_field ('description' )
335
335
ds_license = self ._get_license ()
336
336
if self ._is_gated ():
337
- ds_description = self ._gated_text + '\n ' + ds_description
338
- ds_license = ds_license + ' ' + self ._gated_dataset_warning
337
+ ds_description = (
338
+ f'{ self ._gated_text } \n { ds_description } '
339
+ if ds_description
340
+ else self ._gated_text
341
+ )
342
+ ds_license = (
343
+ f'{ ds_license } { self ._gated_dataset_warning } '
344
+ if ds_license
345
+ else self ._gated_dataset_warning
346
+ )
339
347
return dataset_info_lib .DatasetInfo (
340
348
builder = self ,
341
349
description = ds_description ,
You can’t perform that action at this time.
0 commit comments