Skip to content

CLN find stacklevel inside deprecate_nonkeyword_argumentsย #46687

Closed
@MarcoGorelli

Description

@MarcoGorelli

xref https://github.com/pandas-dev/pandas/pull/44896/files#r845356050

Rather than passing stacklevel to the decorator, e.g.

@deprecate_nonkeyword_arguments(
version=None, allowed_args=["filepath_or_buffer"], stacklevel=3
)

find_stacklevel should probably be called within deprecate_nonkeyword_arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    CleanWarningsWarnings that appear or should be added to pandas

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions