Viewing 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
Back to Directory
File Manager