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
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ class ListParameter(Parameter):
# Parameter uses 'limits' option to define the set of allowed values
if 'values' in opts:
warnings.warn('Using "values" to set limits is deprecated and will be removed in 0.13. Use "limits"'
' instead.', DeprecationWarning, stacklevel=2)
warnings.warn('Using "values" to set limits is deprecated. Use "limits" instead.',
DeprecationWarning, stacklevel=2)
opts['limits'] = opts['values']
if opts.get('limits', None) is None:
opts['limits'] = []