From c05dcf744e3badb01f429c2619304f58a95a2897 Mon Sep 17 00:00:00 2001 From: VenishPaneliya <141703684+VenishPaneliya@users.noreply.github.com> Date: Sat, 14 Nov 2026 18:09:14 +0530 Subject: [PATCH] Correct three parameter docstrings that disagree with the signatures - get_datasets documents download_qualities as (default=True); the argument defaults to False, as get_dataset's docstring already says. - _name_to_id carries a download_qualities entry for an argument it does not take; the same stale text as above. - list_runs documents display_errors as (default=None) for a bool that defaults to False. --- openml/datasets/functions.py | 4 +--- openml/runs/functions.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/openml/datasets/functions.py b/openml/datasets/functions.py index b9ae7bf04..4c6474623 100644 --- a/openml/datasets/functions.py +++ b/openml/datasets/functions.py @@ -201,8 +201,6 @@ def _name_to_id( error_if_multiple : bool (default=False) If `False`, if multiple datasets match, return the least recent active dataset. If `True`, if multiple datasets match, raise an error. - download_qualities : bool, optional (default=True) - If `True`, also download qualities.xml file. If False it skip the qualities.xml. Returns ------- @@ -247,7 +245,7 @@ def get_datasets( make the operation noticeably slower. Metadata is also still retrieved. If False, create the OpenMLDataset and only populate it with the metadata. The data may later be retrieved through the `OpenMLDataset.get_data` method. - download_qualities : bool, optional (default=True) + download_qualities : bool, optional (default=False) If True, also download qualities.xml file. If False it skip the qualities.xml. Returns diff --git a/openml/runs/functions.py b/openml/runs/functions.py index 7c3896c6b..6e6e01e8f 100644 --- a/openml/runs/functions.py +++ b/openml/runs/functions.py @@ -1244,7 +1244,7 @@ def list_runs( # noqa: PLR0913,PLR0917 study : int, optional - display_errors : bool, optional (default=None) + display_errors : bool, optional (default=False) Whether to list runs which have an error (for example a missing prediction file).