Don't specify a version for deprecation

This commit is contained in:
Nathan Jessurun 2021-08-06 08:04:11 -04:00
parent 3d15ca1038
commit 503507ba50

View File

@ -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'] = []