Viewing File: /opt/alt/python35/lib/python3.5/site-packages/attr/__pycache__/converters.cpython-35.pyc



#IGZã@s2dZddlmZmZmZdd„ZdS)z
Commonly useful converters.
é)Úabsolute_importÚdivisionÚprint_functioncs‡fdd†}|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
    cs|dkrdSˆ|ƒS)N©)Úval)Ú	converterrú/converters.pyÚoptional_convertersz$optional.<locals>.optional_converterr)rr	r)rrÚoptionalsr
N)Ú__doc__Z
__future__rrrr
rrrrÚ<module>s
Back to Directory File Manager