| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/attr/__pycache__/ |
Upload File : |
o
��`� � @ sZ d Z ddlmZmZmZ ddlmZ ddlmZ dd� Z dd � Z
d
d� Zdd
� Ze
� ZdS )z%
Commonly used hooks for on_setattr.
� )�absolute_import�division�print_function� )�_config��FrozenAttributeErrorc s � fdd�}|S )zf
Run all *setters* and return the return value of the last one.
.. versionadded:: 20.1.0
c s |}� D ]}|| ||�}q|S )N� )�instance�attrib� new_value�rv�setter��settersr �./usr/lib/python3/dist-packages/attr/setters.py�wrapped_pipe s zpipe.<locals>.wrapped_piper )r r r r r �pipe s r c C s t � �)zL
Prevent an attribute to be modified.
.. versionadded:: 20.1.0
r )�_�__�___r r r �frozen s r c C s, t jdu r|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)r
r r �vr r r �validate&