Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/attr/__pycache__/setters.cpython-311.pyc
]jx N d Z ddlmZ ddlmZ d Zd Zd Zd Z e Z
dS ) z%
Commonly used hooks for on_setattr.
)_configFrozenAttributeErrorc fd}|S )zf
Run all *setters* and return the return value of the last one.
.. versionadded:: 20.1.0
c 0 |}D ]} || || }|S )N )instanceattrib new_valuervsettersetterss l/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/attr/setters.pywrapped_pipezpipe.<locals>.wrapped_pipe s1
. .F&"--BB r )r r s ` r piper s$ r c t )zL
Prevent an attribute to be modified.
.. versionadded:: 20.1.0
r )______s r frozenr s
r c V t j du 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 vs r validater ' sH %''A Ah """r c . |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 cs r convertr 9 s( A q||r N)__doc__ r
exceptionsr r r r r objectNO_OPr r r <module>r&