Skip to content

Improve add_signature_parameters : add first_possible and last_possible #82

@smarie

Description

@smarie

Sometimes adding a parameter at the beginning or end of parameters list would make the resulting signature invalid. Typically, adding a keyword-only parameter before a keyword-or-positional, or adding a parameter without default after a parameter with a default (and conversely)...

Two new arguments first_possible and last_possible could allow the users to ask for a "smart insert first" and "smart insert last" feature.

This would help solving smarie/python-pytest-cases#279
in a reusable way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions