Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions openml/evaluations/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ 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), type(
evals_dict["oml:evaluations"],
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__}. "
Comment on lines +234 to +237
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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__}. "
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"]},
Expand Down