File: //opt/alt/python35/lib/python3.5/site-packages/attr/__pycache__/converters.cpython-35.opt-1.pyc
#IGZ � @ s2 d Z d d l m Z m Z m Z d d � Z d S)z
Commonly useful converters.
� )�absolute_import�division�print_functionc s � f d d � } | S)z�
A converter that allows an attribute to be optional. An optional attribute
is one which can be set to ``None``.
:param callable converter: the converter that is used for non-``None``
values.
.. versionadded:: 17.1.0
c s | d k r d S� | � S)N� )�val)� converterr �/converters.py�optional_converter s z$optional.<locals>.optional_converterr )r r r )r r �optional s r
N)�__doc__Z
__future__r r r r
r r r r �<module> s