File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def ipv6(value):
3434 """
3535 Returns whether or not given value is a valid IP version 6 address.
3636
37- This validator is based on `WTForms IPAddress validator`_
37+ This validator is based on `WTForms IPAddress validator`_.
3838
3939 .. _WTForms IPAddress validator:
4040 https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py
@@ -48,6 +48,8 @@ def ipv6(value):
4848 >>> validators.ipv6('abc.0.0.1')
4949 False
5050
51+ .. versionadded:: 0.2
52+
5153 :param value: IP address string to validate
5254 """
5355 parts = value .split (':' )
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ def mac_address(value):
1111 Returns whether or not given value is a valid mac address. If the value is
1212 valid mac address this function returns True, otherwise `FailedValidation`.
1313
14+ This validator is based on `WTForms MacAddress validator`_.
15+
16+ .. _WTForms MacAddress validator:
17+ https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py
18+
1419 Examples::
1520
1621 >>> import validators
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ def uuid(value):
1111 Returns whether or not given value is a valid uuid. If the value is valid
1212 uuid this function returns True, otherwise `FailedValidation`.
1313
14+ This validator is based on `WTForms UUID validator`_.
15+
16+ .. _WTForms UUID validator:
17+ https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py
18+
1419 Examples::
1520
1621 >>> import validators
You can’t perform that action at this time.
0 commit comments