o �J�hQ�@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�JC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\attr\setters.py� wrapped_pipeszpipe.<locals>.wrapped_piper)r rrr r �pipe s rcCst�)zL Prevent an attribute to be modified. .. versionadded:: 20.1.0 r)�_�__Z___rrr �frozensrcCs,tjdur|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)rrr�vrrr �validate&s  rcCs8|j}|rddlm}t||�s||�S||||�S|S)z~ Run *attrib*'s converter -- if it has one -- on *new_value* and return the result. .. versionadded:: 20.1.0 r)� Converter)� converter�_maker� isinstance)rrr�crrrr �convert8s   rN) �__doc__�r� exceptionsrrrrr�object�NO_OPrrrr �<module>s    
Memory