HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/attr/__pycache__/setters.cpython-310.pyc
o

"wex�@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�E/home/arjun/projects/env/lib/python3.10/site-packages/attr/setters.py�wrapped_pipeszpipe.<locals>.wrapped_piper)rrrrr
�pipes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
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�
exceptionsrrrrr�object�NO_OPrrrr
�<module>s