Promote deprecation warnings to future warnings #974
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This concerns all the deprecated features listed in the table below. Then we release (2.1.2 or 2.2.0), remove in the next minor release (2.2.0 or 2.3.0), with a couple months between the two releases. The last two deprecations at the end of the table may need more time before removal as they were more recently promoted to
ParamDeprecationWarning
(in 2.1.0 in March of this year).ParamDeprecationWarning
since2.0.0
param.parameterized
module /param.parameterized.recursive_repr
: no replacementParamDeprecationWarning
since2.0.0
Number.set_hook
: no replacementParamDeprecationWarning
since2.0.0
param.parameterized
module /param.parameterized.overridable_property
: no replacementParamDeprecationWarning
since2.0.0
List.class_
: use insteaditem_type
ParamDeprecationWarning
since2.0.0
param.__init__
module /param.produce_value
: no replacementParamDeprecationWarning
since2.0.0
param.__init__
module /param.as_unicode
: no replacementParamDeprecationWarning
since2.0.0
param.__init__
module /param.is_ordered_dict
: no replacementParamDeprecationWarning
since2.0.0
param.__init__
module /param.hashable
: no replacementParamDeprecationWarning
since2.0.0
param.__init__
module /param.named_objs
: no replacementParamDeprecationWarning
since2.0.0
param.__init__
module /param.abbreviate_paths
: no replacementParamDeprecationWarning
since2.0.0
param.parameterized
module /param.parameterized.batch_watch
: use insteadbatch_call_watchers
ParamDeprecationWarning
since2.0.0
param.parameterized
module /param.parameterized.all_equal
: no replacementParamDeprecationWarning
since2.0.0
param.parameterized
module /param.parameterized.add_metaclass
: no replacementParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.print_param_defaults
: use insteadfor k,v in p.param.objects().items(): print(f"{p.__class__.name}.{k}={repr(v.default)}")
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.set_default
: use insteadfor k,v in p.param.objects().items(): print(f"{p.__class__.name}.{k}={repr(v.default)}
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param._add_parameter
: use instead.param.add_parameter
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.params
: use instead.param.values()
or.param['param']
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.set_param
: use instead.param.update
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.get_param_values
: use instead.param.values().items()
(or.param.values()
for the common case ofdict(....param.get_param_values())
)ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.params_depended_on
: use instead.param.method_dependencies
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.defaults
: use instead{k:v.default for k,v in p.param.objects().items()}
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.print_param_values
: use insteadfor k,v in p.param.objects().items(): print(f"{p.__class__.name}.{k}={repr(v.default)}")
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.message
: use instead.param.log(param.MESSAGE, ...)
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.verbose
: use instead.param.log(param.VERBOSE, ...)
ParamDeprecationWarning
since2.0.0
, soft-deprecated since1.12.0
.param
namespace /.param.debug
: use instead.param.log(param.DEBUG, ...)
ParamDeprecationWarning
since2.0.0
param.__init__
module /param.normalize_path
: no replacementParamDeprecationWarning
since2.1.0
,ParamPendingDeprecationWarning
since2.0.0
default
is deprecatedParamDeprecationWarning
since2.1.0
,ParamPendingDeprecationWarning
since2.0.0
Selector
parameters that acceptobjects
as first positional argument, andClassSelector
parameters that acceptclass_
as first positional argument, passing any argument by position is deprecated.