HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/attr/__pycache__/setters.cpython-310.pyc
o

�hQ�@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|}�D]}||||�}q|S)N�)�instance�attrib�	new_value�rv�setter��settersr�?/usr/local/CyberCP/lib/python3.10/site-packages/attr/setters.py�wrapped_pipeszpipe.<locals>.wrapped_piper)rrrrr
�pipesrcCst�)zL
    Prevent an attribute to be modified.

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

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

    .. versionadded:: 20.1.0
    r)�	Converter)�	converter�_maker�
isinstance)rrr�crrrr
�convert8s
rN)�__doc__�r�
exceptionsrrrrr�object�NO_OPrrrr
�<module>s