Skip to content

@deprecated() Does Not Issue Warning When Under @deprecate_renamed_parameter() #26536

@Kevin-Patyk

Description

@Kevin-Patyk

Currently, when @deprecated() is below @deprecate_renamed_parameter(), it does not issue (print) a deprecation warning. So, for example, this would not issue a warning (when it should):

@deprecate_renamed_parameter()
@deprecate_renamed_parameter()
@deprecated()

While moving @deprecated() to the top of the group will:

@deprecated()
@deprecate_renamed_parameter()
@deprecate_renamed_parameter()

This was outlined in #26479. A temporary fix was implemented in #26530.

The solution should allow the deprecation decorators to be applied in any order and still work.

Resources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-lowPriority: lowacceptedReady for implementationinternalAn internal refactor or improvementpythonRelated to Python Polars

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions