Skip to content

Enhancement: Add missing **kwargs support to list_setups and list_evaluations #1753

Open

Description

@shellyco-code

Description

The list_setups and list_evaluations API endpoint functions in the Python connector currently lack support for passing arbitrary **kwargs. Other list API endpoints (like list_tasks or list_datasets) support this, allowing users to pass query parameters for advanced filtering directly to the OpenML backend.

There are existing TODO comments in the codebase specifically pointing out this limitation in test_utils.py (# TODO apparently list_setups function does not support kwargs).

Steps/Code to Reproduce

import openml

# Attempting to filter setups or evaluations with arbitrary backend kwargs raises an error
openml.setups.list_setups(uploader=1) 

Expected Results
The function should accept the **kwargs (like uploader=1), pass them to the underlying request builder, and successfully return the filtered setups or evaluations.

Actual Results
text
TypeError: list_setups() got an unexpected keyword argument 'uploader'

Activity

  1. L-Agbaria commented on Oct 1, 2026

    @L-Agbaria
    Contributor

    Hello @shellyco-code,
    Thank you for your contributions, however I think this issue is related to the newly posted issue #1757, which will first aim to standardize the listing process for all objects and then update the functionality to include a request size limit followed by testing.
    For now I will keep this issue as open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions