Don't specify a version for deprecation
This commit is contained in:
parent
3d15ca1038
commit
503507ba50
@ -91,8 +91,8 @@ class ListParameter(Parameter):
|
|||||||
|
|
||||||
# Parameter uses 'limits' option to define the set of allowed values
|
# Parameter uses 'limits' option to define the set of allowed values
|
||||||
if 'values' in opts:
|
if 'values' in opts:
|
||||||
warnings.warn('Using "values" to set limits is deprecated and will be removed in 0.13. Use "limits"'
|
warnings.warn('Using "values" to set limits is deprecated. Use "limits" instead.',
|
||||||
' instead.', DeprecationWarning, stacklevel=2)
|
DeprecationWarning, stacklevel=2)
|
||||||
opts['limits'] = opts['values']
|
opts['limits'] = opts['values']
|
||||||
if opts.get('limits', None) is None:
|
if opts.get('limits', None) is None:
|
||||||
opts['limits'] = []
|
opts['limits'] = []
|
||||||
|
Loading…
Reference in New Issue
Block a user