Add note about deprecated parameter in docstring

This commit is contained in:
Antoine Leclair
2016-06-14 21:46:35 -04:00
parent 2b8cdb3301
commit 7b07239333

View File

@@ -282,6 +282,8 @@ class Function(object):
The default value for the ``msg`` when not provided via the
constructor is ``Invalid value``.
The ``message`` parameter has been deprecated, use ``msg`` instead.
"""
def __init__(self, function, msg=None, message=None):
self.function = function