<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
B
    ^u_š  ã               @   sZ   d Z ddlmZmZmZ ddlmZ ddlmZ dd„ Z	dd	„ Z
d
d„ Zdd„ Zeƒ ZdS )z%
Commonly used hooks for on_setattr.
é    )Úabsolute_importÚdivisionÚprint_functioné   )Ú_config)ÚFrozenAttributeErrorc                 s   ‡ fdd„}|S )zf
    Run all *setters* and return the return value of the last one.

    .. versionadded:: 20.1.0
    c                s"   |}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_pipe   s    
zpipe.<locals>.wrapped_piper   )r   r   r   )r   r   Úpipe   s    r   c             C   s
   t ƒ ‚dS )zL
    Prevent an attribute to be modified.

    .. versionadded:: 20.1.0
    N)r   )Ú_Ú__Z___r   r   r   Úfrozen   s    r   c             C   s,   t jdk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_validatorsÚ	validator)r	   r
   r   Úvr   r   r   Úvalidate&   s    
r   c             C   s   |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   Úcr   r   r   Úconvert8   s    r   N)Ú__doc__Ú
__future__r   r   r   Ú r   Ú
exceptionsr   r   r   r   r   ÚobjectZNO_OPr   r   r   r   Ú<module>   s   	