Skip to content

utility function to warn changes in default arguments #5653

Closed
@wyli

Description

@wyli

Is your feature request related to a problem? Please describe.

def deprecated_arg(
name,
since: Optional[str] = None,
removed: Optional[str] = None,
msg_suffix: str = "",
version_val: str = __version__,
new_name: Optional[str] = None,
warning_category=FutureWarning,
):

the deprecated_arg can trigger warnings when a deprecating argument is provided by the user,
it however doesn't warn when a default value of an argument has been/will be changed.

for example it's currently not possible to warn about these changes:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions