From 6fb6c834f008996c994b0a86c3808d0a33d44525 Mon Sep 17 00:00:00 2001 From: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com> Date: Thu, 7 Mar 2024 18:21:20 +0100 Subject: [PATCH] get_dataset_default_config_name docstring (#6723) --- src/datasets/inspect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datasets/inspect.py b/src/datasets/inspect.py index f976073ac97..b6178b52d5a 100644 --- a/src/datasets/inspect.py +++ b/src/datasets/inspect.py @@ -369,6 +369,7 @@ def get_dataset_default_config_name( **download_kwargs, ) -> Optional[str]: """Get the default config name for a particular dataset. + Can return None only if the dataset has multiple configurations and no default configuration. Args: path (`str`): path to the dataset processing script with the dataset builder. Can be either: @@ -397,7 +398,7 @@ def get_dataset_default_config_name( for example `token`. Returns: - Optional[str] + Optional[str]: the default config name if there is one Example: