File: //usr/lib/python3/dist-packages/mercurial/thirdparty/attr/__pycache__/converters.cpython-310.pyc
o
�]Lb � @ s$ d Z ddlmZmZmZ dd� ZdS )z
Commonly useful converters.
� )�absolute_import�division�print_functionc s � 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
c s | d u rd S � | �S )N� )�val�� converterr �F/usr/lib/python3/dist-packages/mercurial/thirdparty/attr/converters.py�optional_converter s z$optional.<locals>.optional_converterr )r r
r r r �optional s r N)�__doc__�
__future__r r r r r r r r �<module> s