U
    ]¥]c  ã                   @   sˆ   d dl mZmZmZ G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd	„ d	e	ƒZ
G d
d„ de	ƒZG dd„ de	ƒZG dd„ deƒZdS )é    )Úabsolute_importÚdivisionÚprint_functionc                   @   s   e Zd ZdZdZegZdS )ÚFrozenInstanceErrorzÜ
    A frozen/immutable instance has been attempted to be modified.

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

    .. versionadded:: 16.1.0
    zcan't set attributeN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚmsgÚargs© r   r   ú1/usr/lib/python3/dist-packages/attr/exceptions.pyr      s   	r   c                   @   s   e Zd ZdZdS )ÚAttrsAttributeNotFoundErrorzq
    An ``attrs`` function couldn't find an attribute that the user asked for.

    .. versionadded:: 16.2.0
    N©r   r   r   r	   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )ÚNotAnAttrsClassErrorzi
    A non-``attrs`` class has been passed into an ``attrs`` function.

    .. versionadded:: 16.2.0
    Nr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdS )ÚDefaultAlreadySetErrorzˆ
    A default has been set using ``attr.ib()`` and is attempted to be reset
    using the decorator.

    .. versionadded:: 17.1.0
    Nr   r   r   r   r   r   "   s   r   c                   @   s   e Zd ZdZdS )ÚUnannotatedAttributeErrorz~
    A class with ``auto_attribs=True`` has an ``attr.ib()`` without a type
    annotation.

    .. versionadded:: 17.3.0
    Nr   r   r   r   r   r   +   s   r   c                   @   s   e Zd ZdZdS )ÚPythonTooOldErrorzr
    An ``attrs`` feature requiring a more recent python version has been used.

    .. versionadded:: 18.2.0
    Nr   r   r   r   r   r   4   s   r   c                       s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )ÚNotCallableErrorz€
    A ``attr.ib()`` requiring a callable has been set with a value
    that is not callable.

    .. versionadded:: 19.2.0
    c                    s"   t t| ƒ ||¡ || _|| _d S ©N)ÚsuperÚ	TypeErrorÚ__init__r
   Úvalue)Úselfr
   r   ©Ú	__class__r   r   r   D   s    zNotCallableError.__init__c                 C   s
   t | jƒS r   )Ústrr
   )r   r   r   r   Ú__str__I   s    zNotCallableError.__str__)r   r   r   r	   r   r   Ú__classcell__r   r   r   r   r   <   s   r   N)Z
__future__r   r   r   ÚAttributeErrorr   Ú
ValueErrorr   r   ÚRuntimeErrorr   r   r   r   r   r   r   r   r   Ú<module>   s   		