@@ -1507,7 +1507,7 @@ def dataset_module_factory(
1507
1507
Directory to read/write data. Defaults to `"~/.cache/huggingface/datasets"`.
1508
1508
1509
1509
<Added version="2.16.0"/>
1510
- trust_remote_code (`bool`, defaults to `False `):
1510
+ trust_remote_code (`bool`, *optional*, defaults to `None `):
1511
1511
Whether or not to allow for datasets defined on the Hub using a dataset script. This option
1512
1512
should only be set to `True` for repositories you trust and in which you have read the code, as it will
1513
1513
execute code present on the Hub on your local machine.
@@ -1809,7 +1809,7 @@ def load_dataset_builder(
1809
1809
**Experimental**. Key/value pairs to be passed on to the dataset file-system backend, if any.
1810
1810
1811
1811
<Added version="2.11.0"/>
1812
- trust_remote_code (`bool`, defaults to `False `):
1812
+ trust_remote_code (`bool`, *optional*, defaults to `None `):
1813
1813
Whether or not to allow for datasets defined on the Hub using a dataset script. This option
1814
1814
should only be set to `True` for repositories you trust and in which you have read the code, as it will
1815
1815
execute code present on the Hub on your local machine.
@@ -1920,7 +1920,7 @@ def load_dataset(
1920
1920
streaming : bool = False ,
1921
1921
num_proc : Optional [int ] = None ,
1922
1922
storage_options : Optional [Dict ] = None ,
1923
- trust_remote_code : bool = None ,
1923
+ trust_remote_code : Optional [ bool ] = None ,
1924
1924
** config_kwargs ,
1925
1925
) -> Union [DatasetDict , Dataset , IterableDatasetDict , IterableDataset ]:
1926
1926
"""Load a dataset from the Hugging Face Hub, or a local dataset.
@@ -2029,7 +2029,7 @@ def load_dataset(
2029
2029
**Experimental**. Key/value pairs to be passed on to the dataset file-system backend, if any.
2030
2030
2031
2031
<Added version="2.11.0"/>
2032
- trust_remote_code (`bool`, defaults to `False `):
2032
+ trust_remote_code (`bool`, *optional*, defaults to `None `):
2033
2033
Whether or not to allow for datasets defined on the Hub using a dataset script. This option
2034
2034
should only be set to `True` for repositories you trust and in which you have read the code, as it will
2035
2035
execute code present on the Hub on your local machine.
0 commit comments