
    h                        S SK Jr  S SKJr   " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      rg)    )annotations)ClassVarc                  .    \ rS rSr% SrSr\/rS\S'   Srg)FrozenError   z
A frozen/immutable instance or attribute have been attempted to be
modified.

It mirrors the behavior of ``namedtuples`` by using the same error message
and subclassing `AttributeError`.

.. versionadded:: 20.1.0
zcan't set attributezClassVar[tuple[str]]args N)	__name__
__module____qualname____firstlineno____doc__msgr   __annotations____static_attributes__r	       A/var/www/html/env/lib/python3.13/site-packages/attr/exceptions.pyr   r      s      C"%D
&r   r   c                      \ rS rSrSrSrg)FrozenInstanceError   zP
A frozen instance has been attempted to be modified.

.. versionadded:: 16.1.0
r	   Nr
   r   r   r   r   r   r	   r   r   r   r          r   r   c                      \ rS rSrSrSrg)FrozenAttributeError   zQ
A frozen attribute has been attempted to be modified.

.. versionadded:: 20.1.0
r	   Nr   r	   r   r   r   r      r   r   r   c                      \ rS rSrSrSrg)AttrsAttributeNotFoundError'   zc
An *attrs* function couldn't find an attribute that the user asked for.

.. versionadded:: 16.2.0
r	   Nr   r	   r   r   r   r   '   r   r   r   c                      \ rS rSrSrSrg)NotAnAttrsClassError/   zY
A non-*attrs* class has been passed into an *attrs* function.

.. versionadded:: 16.2.0
r	   Nr   r	   r   r   r    r    /   r   r   r    c                      \ rS rSrSrSrg)DefaultAlreadySetError7   z|
A default has been set when defining the field and is attempted to be reset
using the decorator.

.. versionadded:: 17.1.0
r	   Nr   r	   r   r   r#   r#   7       r   r#   c                      \ rS rSrSrSrg)UnannotatedAttributeError@   ze
A class with ``auto_attribs=True`` has a field without a type annotation.

.. versionadded:: 17.3.0
r	   Nr   r	   r   r   r'   r'   @   r   r   r'   c                      \ rS rSrSrSrg)PythonTooOldErrorH   zl
It was attempted to use an *attrs* feature that requires a newer Python
version.

.. versionadded:: 18.2.0
r	   Nr   r	   r   r   r*   r*   H   r%   r   r*   c                  2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )NotCallableErrorQ   zh
A field requiring a callable has been set with a value that is not
callable.

.. versionadded:: 19.2.0
c                D   > [         [        U ]  X5        Xl        X l        g N)super	TypeError__init__r   value)selfr   r4   	__class__s      r   r3   NotCallableError.__init__Y   s    i'3
r   c                ,    [        U R                  5      $ r0   )strr   )r5   s    r   __str__NotCallableError.__str__^   s    488}r   )r   r4   )	r
   r   r   r   r   r3   r:   r   __classcell__)r6   s   @r   r-   r-   Q   s    
 r   r-   N)
__future__r   typingr   AttributeErrorr   r   r   
ValueErrorr   r    RuntimeErrorr#   r'   r*   r2   r-   r	   r   r   <module>rB      sy    # '. '+ ; * : \   y r   