AlkantarClanX12

Your IP : 3.23.101.60


Current Path : /opt/alt/python37/lib/python3.7/site-packages/attr/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/attr/__pycache__/setters.cpython-37.pyc

B

^u_��@sZdZddlmZmZmZddlmZddlmZdd�Z	dd	�Z
d
d�Zdd
�Ze
�ZdS)z%
Commonly used hooks for on_setattr.
�)�absolute_import�division�print_function�)�_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�=/opt/alt/python37/lib/python3.7/site-packages/attr/setters.py�wrapped_pipes
zpipe.<locals>.wrapped_piper)rrr)rr�pipesrcCs
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_validators�	validator)r	r
r�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)r	r
r�crrr�convert8srN)�__doc__�
__future__rrr�r�
exceptionsrrrrr�objectZNO_OPrrrr�<module>s