1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
U
L±dxã@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úCd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\attr/setters.pyÚ wrapped_pipeszpipe.<locals>.wrapped_piper)r rrr r Úpipe s rcCs
tƒ‚dS)zL
    Prevent an attribute to be modified.
 
    .. versionadded:: 20.1.0
    Nr)Ú_Ú__Z___rrr ÚfrozensrcCs,tjdkr|S|j}|s|S||||ƒ|S)z^
    Run *attrib*'s validator on *new_value* if it has one.
 
    .. versionadded:: 20.1.0
    F)rZ_run_validatorsZ    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ÚobjectZNO_OPrrrr Ú<module>s