o
    bÅiÆ  ã                   @  s    d dl 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G dd„ de	ƒZG dd„ deƒZdS )é    )Úannotationsc                      s    e Zd ZdZ‡ fdd„Z‡  ZS )ÚFrozenErrorzî
    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
    c                   s   d}t ƒ  |¡ || _d S )Nzcan't set attribute)ÚsuperÚ__init__Úmsg)Úselfr   ©Ú	__class__© úW/var/www/scraper.webshop2u.hu/html/venv/lib/python3.10/site-packages/attr/exceptions.pyr      s   
zFrozenError.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r
   r
   r   r   r      s    
r   c                   @  ó   e Zd ZdZdS )ÚFrozenInstanceErrorz\
    A frozen instance has been attempted to be modified.

    .. versionadded:: 16.1.0
    N©r   r   r   r   r
   r
   r
   r   r      ó    r   c                   @  r   )ÚFrozenAttributeErrorz]
    A frozen attribute has been attempted to be modified.

    .. versionadded:: 20.1.0
    Nr   r
   r
   r
   r   r      r   r   c                   @  r   )ÚAttrsAttributeNotFoundErrorzo
    An *attrs* function couldn't find an attribute that the user asked for.

    .. versionadded:: 16.2.0
    Nr   r
   r
   r
   r   r   '   r   r   c                   @  r   )ÚNotAnAttrsClassErrorze
    A non-*attrs* class has been passed into an *attrs* function.

    .. versionadded:: 16.2.0
    Nr   r
   r
   r
   r   r   /   r   r   c                   @  r   )ÚDefaultAlreadySetErrorzŒ
    A default has been set when defining the field and is attempted to be reset
    using the decorator.

    .. versionadded:: 17.1.0
    Nr   r
   r
   r
   r   r   7   r   r   c                   @  r   )ÚUnannotatedAttributeErrorzq
    A class with ``auto_attribs=True`` has a field without a type annotation.

    .. versionadded:: 17.3.0
    Nr   r
   r
   r
   r   r   @   r   r   c                   @  r   )ÚPythonTooOldErrorz|
    It was attempted to use an *attrs* feature that requires a newer Python
    version.

    .. versionadded:: 18.2.0
    Nr   r
   r
   r
   r   r   H   r   r   c                      s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )ÚNotCallableErrorzx
    A field requiring a callable has been set with a value that is not
    callable.

    .. versionadded:: 19.2.0
    c                   s"   t t| ƒ ||¡ || _|| _d S ©N)r   Ú	TypeErrorr   r   Úvalue)r   r   r   r   r
   r   r   Y   s   
zNotCallableError.__init__c                 C  s
   t | jƒS r   )Ústrr   )r   r
   r
   r   Ú__str__^   s   
zNotCallableError.__str__)r   r   r   r   r   r    r   r
   r
   r   r   r   Q   s    r   N)Ú
__future__r   ÚAttributeErrorr   r   r   Ú
ValueErrorr   r   ÚRuntimeErrorr   r   r   r   r   r
   r
   r
   r   Ú<module>   s   		