whoops, line length.

This commit is contained in:
Christopher Armstrong 2015-11-18 10:57:06 -06:00 committed by Hynek Schlawack
parent e99a9d1348
commit 716e8acace
1 changed files with 10 additions and 7 deletions

View File

@ -58,10 +58,10 @@ def attr(default=NOTHING, validator=None,
dicts). dicts).
:type default: Any value. :type default: Any value.
:param callable validator: :func:`callable` that is called by ``attrs``-generated :param callable validator: :func:`callable` that is called by
``__init__`` methods after the instance has been initialized. They ``attrs``-generated ``__init__`` methods after the instance has been
receive the initialized instance, the :class:`Attribute`, and the initialized. They receive the initialized instance, the
passed value. :class:`Attribute`, and the passed value.
The return value is *not* inspected so the validator has to throw an The return value is *not* inspected so the validator has to throw an
exception itself. exception itself.
@ -69,14 +69,17 @@ def attr(default=NOTHING, validator=None,
They can be globally disabled and re-enabled using They can be globally disabled and re-enabled using
:func:`get_run_validators`. :func:`get_run_validators`.
:param bool repr: Include this attribute in the generated ``__repr__`` method. :param bool repr: Include this attribute in the generated ``__repr__``
method.
:param bool cmp: Include this attribute in the generated comparison methods :param bool cmp: Include this attribute in the generated comparison methods
(``__eq__`` et al). (``__eq__`` et al).
:param bool hash: Include this attribute in the generated ``__hash__`` method. :param bool hash: Include this attribute in the generated ``__hash__``
method.
:param bool init: Include this attribute in the generated ``__init__`` method. :param bool init: Include this attribute in the generated ``__init__``
method.
:param callable convert: :func:`callable` that is called by :param callable convert: :func:`callable` that is called by
``attrs``-generated ``__init__`` methods to convert attribute's value ``attrs``-generated ``__init__`` methods to convert attribute's value