Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.6/site-packages/attr/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/attr/__pycache__/setters.cpython-36.pyc

3

"��cx�@sFdZddlmZddlmZdd�Zdd�Zdd	�Zd
d�Ze	�Z
dS)
z%
Commonly used hooks for on_setattr.
�)�_config)�FrozenAttributeErrorcs�fdd�}|S)zf
    Run all *setters* and return the return value of the last one.

    .. versionadded:: 20.1.0
    cs"|}x�D]}||||�}q
W|S)N�)�instance�attrib�	new_value�rv�setter)�settersr�-/tmp/pip-build-_uu8ur7s/attrs/attr/setters.py�wrapped_pipes
zpipe.<locals>.wrapped_piper)r
rr)r
r�pipesr
cCs
t��dS)zL
    Prevent an attribute to be modified.

    .. versionadded:: 20.1.0
    N)r)�_�__Z___rrr�frozensrcCs,tjdkr|S|j}|s|S||||�|S)z^
    Run *attrib*'s validator on *new_value* if it has one.

    .. versionadded:: 20.1.0
    F)rZ_run_validatorsZ	validator)rrr�vrrr�validate's
rcCs|j}|r||�S|S)z
    Run *attrib*'s converter -- if it has one --  on *new_value* and return the
    result.

    .. versionadded:: 20.1.0
    )�	converter)rrr�crrr�convert9srN)�__doc__�r�
exceptionsrr
rrr�objectZNO_OPrrrr�<module>s	

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists