Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.6/site-packages/attr/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/attr/__pycache__/_next_gen.cpython-36.pyc

3

"��c��@s�dZddlmZddlmZddlmZddlmZ	ddl
mZmZm
Z
mZmZddlmZdd	d	d	d	d	d
dd
dd	ddd
d	dd
d	d	d	d
d�d
d�ZeZeed
d	d�Zed	d
d	d
d	d	d	dd	d	d	d	d�
dd�Zd
d	d	d�dd�Zd
d	d�dd�Zd	S)z]
These are keyword-only APIs that call `attr.s` and `attr.ib` with different
default values.
�)�partial�)�setters)�asdict)�astuple)�NOTHING�_frozen_setattrs�_ng_default_on_setattr�attrib�attrs)�UnannotatedAttributeErrorNTF)�these�repr�unsafe_hash�hash�init�slots�frozen�weakref_slot�str�auto_attribs�kw_only�
cache_hash�auto_exc�eq�order�auto_detect�getstate_setstate�
on_setattr�field_transformer�
match_argscsZ��������	�
���
�������fdd������
fdd�}|dkrN|S||�SdS)a�
    Define an ``attrs`` class.

    Differences to the classic `attr.s` that it uses underneath:

    - Automatically detect whether or not *auto_attribs* should be `True` (c.f.
      *auto_attribs* parameter).
    - If *frozen* is `False`, run converters and validators when setting an
      attribute by default.
    - *slots=True*

      .. caution::

         Usually this has only upsides and few visible effects in everyday
         programming. But it *can* lead to some suprising behaviors, so please
         make sure to read :term:`slotted classes`.
    - *auto_exc=True*
    - *auto_detect=True*
    - *order=False*
    - Some options that were only relevant on Python 2 or were kept around for
      backwards-compatibility have been removed.

    Please note that these are all defaults and you can change them as you
    wish.

    :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 any attributes are annotated and no unannotated `attrs.fields`\ s
          are found, it assumes *auto_attribs=True*.
       2. Otherwise it assumes *auto_attribs=False* and tries to collect
          `attrs.fields`\ s.

    For now, please refer to `attr.s` for the rest of the parameters.

    .. versionadded:: 20.1.0
    .. versionchanged:: 21.3.0 Converters are also run ``on_setattr``.
    .. versionadded:: 22.2.0
       *unsafe_hash* as an alias for *hash* (for :pep:`681` compliance).
    cs4t|��
�������|�	�����d����
d�S)NT)�	maybe_clsr
rrrrrrrrrrrrrrrZcollect_by_mrorrrr )r)�clsr)rrrrrrrrrrr rrrrrr
rr��//tmp/pip-build-_uu8ur7s/attrs/attr/_next_gen.py�do_itYs.zdefine.<locals>.do_itcs��dtjfk}�dkr"�dkr"t�x,|jD]"}|jtkr*|rDtd��tj�Pq*W�dk	rb�|��Sy
�|d�Stk
r��|d�SXdS)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_OPr	�	__bases__�__setattr__r�
ValueErrorr)r"Zhad_on_setattrZbase_cls)rr%rrr#r$�wrapss 


zdefine.<locals>.wrapNr#)r!r
rrrrrrrrrrrrrrrrrrr r)r#)rrrrr%rrrrrrrr rrrrrr
rrr$�defines
A0%r*)rr)
�default�	validatorrrr�metadata�	converter�factoryrrrr�aliasc

Cs"t||||||||||	|
||d�
S)zx
    Identical to `attr.ib`, except keyword-only and with some arguments
    removed.

    .. versionadded:: 20.1.0
    )
r+r,rrrr-r.r/rrrrr0)r
)
r+r,rrrr-r.r/rrrrr0r#r#r$�field�sr1)�recurse�filter�value_serializercCst||||dd�S)z�
    Same as `attr.asdict`, except that collections types are always retained
    and dict is always used as *dict_factory*.

    .. versionadded:: 21.3.0
    T)�instr2r3r4�retain_collection_types)�_asdict)r5r2r3r4r#r#r$r�sr)r2r3cCst|||dd�S)z�
    Same as `attr.astuple`, except that collections types are always retained
    and `tuple` is always used as the *tuple_factory*.

    .. versionadded:: 21.3.0
    T)r5r2r3r6)�_astuple)r5r2r3r#r#r$r�sr)N)�__doc__�	functoolsr�rZ_funcsrr7rr8�_makerrr	r
r�
exceptionsrr*Zmutablerr1r#r#r#r$�<module>sXp

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists