• 
      

    Add framework for typing query arguments to methods.

    Review Request #14339 — Created Feb. 10, 2025 and submitted — Latest diff uploaded

    Information

    RBTools
    master

    Reviewers

    This change adds some machinery for rewriting query argument names so we
    can more easily deal with API endpoints that use hyphens in parameters.

    A couple new classes have been added for basic parameter lists for GET
    operations on item and list resources, that include the built-in request
    parameters that are supported for all resources.

    I've also added additional TypedDicts for existing resource subclasses
    which have special parameters for their GET operations. This makes it so
    something like root.get_review_requests(branch=False) will pop up a
    warning that the branch parameter must be str.

    • Ran unit tests.
    • Used a test script to verify that typing was correctly passed through
      for methods that take kwargs for query parameters.

    Commits

    Files