| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/attr/__pycache__/ |
Upload File : |
a
Pͣ_� � @ 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 �0/usr/lib/python3.9/site-packages/attr/setters.py�wrapped_pipe s zpipe.<locals>.wrapped_piper )r r r r r �pipe s r c C s
t � �dS )zL
Prevent an attribute to be modified.
.. versionadded:: 20.1.0
Nr )�_�__Z___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 Z_run_validatorsZ validator)r
r r �vr r r �validate&