Open
Description
This is a feature idea, not a bug report.
It would be great if deprecated
could warn about deprecated arguments, e.g. like
@deprecated_arg(name="old_arg_name", since="1.2", version=mypackage.__version__, reason="'old_arg_name' is not consistent with some reference")
def my_function(old_arg_name, other_args):
pass
which would yield a message like:
"my_function" called with deprecated argument "old_arg_name"
Optionally with a new name hint, so
@deprecated_arg(name="old_arg_name", new_name="new_arg_name", since="1.2", version=mypackage.__version__)
def my_function(old_arg_name, other_args):
pass
which would yield a message like:
"my_function" called with deprecated argument "old_arg_name". Please use "new_arg_name"
Metadata
Metadata
Assignees
Labels
No labels