validator's function can have 1 arg, 2 args or 3 args

This commit is contained in:
2017-01-12 21:58:53 +01:00
parent 01b7fc873e
commit 89fd367b20
5 changed files with 70 additions and 19 deletions

View File

@ -617,7 +617,7 @@ class Settings(object):
exception :exc:`~error.RequirementError` is raised.
And at last, if no target option matches the expected values, the
action must be removed from the option's properties list.
action will not add to the option's properties list.
:param opt: the option on wich the requirement occurs
:type opt: `option.Option()`