%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.9/site-packages/attr/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.9/site-packages/attr/__pycache__/_next_gen.cpython-39.pyc

a

Pͣ_*�@s�dZddlmZddlmZddlmZddlmZm	Z	m
Z
mZddddddd	dd	dd	d	ddd	ddddd
�dd�ZeZ
eeddd
�Zedddddddd	dddd�dd�ZdS)z�
This is a Python 3.6 and later-only, keyword-only, and **provisional** API that
calls `attr.s` with different default values.

Provisional APIs that shall become "import attrs" one glorious day.
�)�partial)�UnannotatedAttributeError�)�setters)�NOTHING�_frozen_setattrs�attrib�attrsNTF)�these�repr�hash�init�slots�frozen�weakref_slot�str�auto_attribs�kw_only�
cache_hash�auto_exc�eq�order�auto_detect�getstate_setstate�
on_setattr�field_transformercsV��������	�
���
�����fdd������fdd�}|durJ|S||�SdS)a4
    The only behavioral differences are the handling of the *auto_attribs*
    option:

    :param Optional[bool] auto_attribs: If set to `True` or `False`, it behaves
       exactly like `attr.s`. If left `None`, `attr.s` will try to guess:

       1. If all attributes are annotated and no `attr.ib` is found, it assumes
          *auto_attribs=True*.
       2. Otherwise it assumes *auto_attribs=False* and tries to collect
          `attr.ib`\ s.

    and that mutable classes (``frozen=False``) validate on ``__setattr__``.

    .. versionadded:: 20.1.0
    cs0t|�����
���|�	�����d��
�d�S)NT)�	maybe_clsr
rrr
rrrrrrrrrrrZcollect_by_mrorrr)r	)�clsr)rrrrrrrrr
rrrrrrr
r��2/usr/lib/python3.9/site-packages/attr/_next_gen.py�do_it7s,�zdefine.<locals>.do_itcs��dtjfv}�dur$�dur$tj�|jD]$}|jtur*|rDtd��tj�qPq*�durb�|��Sz�|d�WSty��|d�YS0dS)z�
        Making this a wrapper ensures this code runs during class creation.

        We also ensure that frozen-ness of classes is inherited.
        NFz@Frozen classes can't use on_setattr (frozen-ness was inherited).T)rZNO_OPZvalidate�	__bases__�__setattr__r�
ValueErrorr)rZhad_on_setattrZbase_cls)rr rrrr�wrapOs"

�
zdefine.<locals>.wrapNr)rr
rrr
rrrrrrrrrrrrrrr$r)rrrrr rrrrrr
rrrrrrr
rr�defines
',%r%)rr��defaultZ	validatorrrr
�metadataZ	converter�factoryrrrrcCs t||||||||||	|
|d�S)zx
    Identical to `attr.ib`, except keyword-only and with some arguments
    removed.

    .. versionadded:: 20.1.0
    r&)rr&rrr�field~s�r*)N)�__doc__�	functoolsrZattr.exceptionsr�r�_makerrrr	r%Zmutablerr*rrrr�<module>sP��j�

Zerion Mini Shell 1.0