From b12575b6aaa1f6fa96e18d23b98004b76e1a7662 Mon Sep 17 00:00:00 2001 From: Eman Abdelhaleem Date: Tue, 6 Jan 2026 11:12:36 +0200 Subject: [PATCH 1/3] a slight fix to an asserion error message --- openml/evaluations/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openml/evaluations/functions.py b/openml/evaluations/functions.py index 7747294d7..273551a00 100644 --- a/openml/evaluations/functions.py +++ b/openml/evaluations/functions.py @@ -232,7 +232,7 @@ def __list_evaluations(api_call: str) -> list[OpenMLEvaluation]: ) assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type( - evals_dict["oml:evaluations"], + evals_dict["oml:evaluations"]["oml:evaluation"], ) uploader_ids = list( From c2465095186b1a1983c88ea25b2e72ee9bfed75d Mon Sep 17 00:00:00 2001 From: Eman Abdelhaleem Date: Tue, 13 Jan 2026 12:49:38 +0200 Subject: [PATCH 2/3] update assertion message --- openml/evaluations/functions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openml/evaluations/functions.py b/openml/evaluations/functions.py index 273551a00..2534bb230 100644 --- a/openml/evaluations/functions.py +++ b/openml/evaluations/functions.py @@ -231,9 +231,10 @@ def __list_evaluations(api_call: str) -> list[OpenMLEvaluation]: "Error in return XML, does not contain " f'"oml:evaluations": {evals_dict!s}', ) - assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type( - evals_dict["oml:evaluations"]["oml:evaluation"], - ) + assert isinstance( + evals_dict["oml:evaluations"]["oml:evaluation"], list + ), "Expected 'oml:evaluation' to be a list, but got" + f"{type(evals_dict['oml:evaluations']['oml:evaluation']).__name__}. " uploader_ids = list( {eval_["oml:uploader"] for eval_ in evals_dict["oml:evaluations"]["oml:evaluation"]}, From 413375dc5657f11f6be6447f34cee4ca03c03899 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 09:00:22 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- openml/evaluations/functions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openml/evaluations/functions.py b/openml/evaluations/functions.py index fba3e8c99..ba3c55550 100644 --- a/openml/evaluations/functions.py +++ b/openml/evaluations/functions.py @@ -231,9 +231,9 @@ def __list_evaluations(api_call: str) -> list[OpenMLEvaluation]: f'Error in return XML, does not contain "oml:evaluations": {evals_dict!s}', ) - assert isinstance( - evals_dict["oml:evaluations"]["oml:evaluation"], list - ), "Expected 'oml:evaluation' to be a list, but got" + assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), ( + "Expected 'oml:evaluation' to be a list, but got" + ) f"{type(evals_dict['oml:evaluations']['oml:evaluation']).__name__}. " uploader_ids = list(