Mini Kabibi Habibi

Current Path : C:/Users/ITO/AppData/Local/Programs/GIMP 2/lib/python2.7/site-packages/attr/
Upload File :
Current File : C:/Users/ITO/AppData/Local/Programs/GIMP 2/lib/python2.7/site-packages/attr/_make.pyc

�
+I�]c@`sLddlmZmZmZddlZddlZddlZddlZddlZddl	Z	ddl
mZddlm
Z
ddlmZmZmZmZmZmZddlmZmZmZmZmZejZdZd	Zd
Z ddd
fZ!dZ"ei�Z#e�Z$defd��YZ%e%�Z&e&e'e(e'e'e(e'e'e'e'e)e'e'd�
Z*d�Z+e+ddddg�Z,d�Z-d�Z.d�Z/d�Z0d�Z1d�Z2defd��YZ3dZ4d �Z5e'e'e'e(e'e'e(e)e)e(e)e)e)e)e)e'e'd!�Z6e6Z7er>d"�Z8n	d#�Z8d$�Z9d%�Z:d&�Z;d'�Z<d(�Z=d)�Z>d*�Z?e'd+�Z@ejA�ZBd,�ZCe'e'd-�ZDd.�ZEd/�ZFd0�ZGd1�ZHd2�ZId3�ZJd4�ZKd5efd6��YZLgeLjMD]KZNeLd7eNd8e&d9e'd:e(d;e'd<e(d=e)d>eNd?kd@e(�	^qZOe<e@eDeLdeO�deO�dgeOD]ZPePjQr�eP^q��ZLdAefdB��YZRe@eDeR��ZRe6dCe(d@e)d>e(�dDefdE��Y�ZSefdF�ZTe6dCe(d>e(�dGefdH��Y�ZUdI�ZVdS(Ji(tabsolute_importtdivisiontprint_functionN(t
itemgetteri(t_config(tPY2tisclasst	iteritemstmetadata_proxytordered_dicttset_closure_cell(tDefaultAlreadySetErrortFrozenInstanceErrortNotAnAttrsClassErrortPythonTooOldErrortUnannotatedAttributeErrors__attr_converter_{}s__attr_factory_{}s=    {attr_name} = _attrs_property(_attrs_itemgetter({index}))styping.ClassVars
t.ClassVartClassVart_attrs_cached_hasht_NothingcB`s&eZdZdZd�Zd�ZRS(s�
    Sentinel class to indicate the lack of a value when ``None`` is ambiguous.

    ``_Nothing`` is a singleton. There is only ever one of it.
    cC`s4tjdkr-tt|�j|�t_ntjS(N(Rt
_singletontNonetsupert__new__(tcls((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR:scC`sdS(NtNOTHING((tself((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt__repr__?sN(t__name__t
__module__t__doc__RRRR(((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR1s	c

C`st|||�\}}|dk	rK|tk	rK|tk	rKtd��n|	dk	r�|tk	rrtd��nt|	�s�td��nt|	�}n|dkr�i}nt	d|d|d|ddd|d	|d
|d|d|d
|
d|d|�S(s
    Create a new attribute on a class.

    ..  warning::

        Does *not* do anything unless the class is also decorated with
        `attr.s`!

    :param default: A value that is used if an ``attrs``-generated ``__init__``
        is used and no value is passed while instantiating or the attribute is
        excluded using ``init=False``.

        If the value is an instance of `Factory`, its callable will be
        used to construct a new value (useful for mutable data types like lists
        or dicts).

        If a default is not set (or set manually to ``attr.NOTHING``), a value
        *must* be supplied when instantiating; otherwise a `TypeError`
        will be raised.

        The default can also be set using decorator notation as shown below.

    :type default: Any value

    :param callable factory: Syntactic sugar for
        ``default=attr.Factory(callable)``.

    :param validator: `callable` that is called by ``attrs``-generated
        ``__init__`` methods after the instance has been initialized.  They
        receive the initialized instance, the `Attribute`, and the
        passed value.

        The return value is *not* inspected so the validator has to throw an
        exception itself.

        If a ``list`` is passed, its items are treated as validators and must
        all pass.

        Validators can be globally disabled and re-enabled using
        `get_run_validators`.

        The validator can also be set using decorator notation as shown below.

    :type validator: ``callable`` or a ``list`` of ``callable``\ s.

    :param repr: Include this attribute in the generated ``__repr__``
        method. If ``True``, include the attribute; if ``False``, omit it. By
        default, the built-in ``repr()`` function is used. To override how the
        attribute value is formatted, pass a ``callable`` that takes a single
        value and returns a string. Note that the resulting string is used
        as-is, i.e. it will be used directly *instead* of calling ``repr()``
        (the default).
    :type repr: a ``bool`` or a ``callable`` to use a custom function.
    :param bool eq: If ``True`` (default), include this attribute in the
        generated ``__eq__`` and ``__ne__`` methods that check two instances
        for equality.
    :param bool order: If ``True`` (default), include this attributes in the
        generated ``__lt__``, ``__le__``, ``__gt__`` and ``__ge__`` methods.
    :param bool cmp: Setting to ``True`` is equivalent to setting ``eq=True,
        order=True``. Deprecated in favor of *eq* and *order*.
    :param hash: Include this attribute in the generated ``__hash__``
        method.  If ``None`` (default), mirror *eq*'s value.  This is the
        correct behavior according the Python spec.  Setting this value to
        anything else than ``None`` is *discouraged*.
    :type hash: ``bool`` or ``None``
    :param bool init: Include this attribute in the generated ``__init__``
        method.  It is possible to set this to ``False`` and set a default
        value.  In that case this attributed is unconditionally initialized
        with the specified default value or factory.
    :param callable converter: `callable` that is called by
        ``attrs``-generated ``__init__`` methods to converter attribute's value
        to the desired format.  It is given the passed-in value, and the
        returned value will be used as the new value of the attribute.  The
        value is converted before being passed to the validator, if any.
    :param metadata: An arbitrary mapping, to be used by third-party
        components.  See `extending_metadata`.
    :param type: The type of the attribute.  In Python 3.6 or greater, the
        preferred method to specify the type is using a variable annotation
        (see `PEP 526 <https://www.python.org/dev/peps/pep-0526/>`_).
        This argument is provided for backward compatibility.
        Regardless of the approach used, the type will be stored on
        ``Attribute.type``.

        Please note that ``attrs`` doesn't do anything with this metadata by
        itself. You can use it as part of your own code or for
        `static type checking <types>`.
    :param kw_only: Make this attribute keyword-only (Python 3+)
        in the generated ``__init__`` (if ``init`` is ``False``, this
        parameter is ignored).

    .. versionadded:: 15.2.0 *convert*
    .. versionadded:: 16.3.0 *metadata*
    .. versionchanged:: 17.1.0 *validator* can be a ``list`` now.
    .. versionchanged:: 17.1.0
       *hash* is ``None`` and therefore mirrors *eq* by default.
    .. versionadded:: 17.3.0 *type*
    .. deprecated:: 17.4.0 *convert*
    .. versionadded:: 17.4.0 *converter* as a replacement for the deprecated
       *convert* to achieve consistency with other noun-based arguments.
    .. versionadded:: 18.1.0
       ``factory=f`` is syntactic sugar for ``default=attr.Factory(f)``.
    .. versionadded:: 18.2.0 *kw_only*
    .. versionchanged:: 19.2.0 *convert* keyword argument removed
    .. versionchanged:: 19.2.0 *repr* also accepts a custom callable.
    .. deprecated:: 19.2.0 *cmp* Removal on or after 2021-06-01.
    .. versionadded:: 19.2.0 *eq* and *order*
    s6Invalid value for hash.  Must be True, False, or None.s=The `default` and `factory` arguments are mutually exclusive.s*The `factory` argument must be a callable.tdefaultt	validatortreprtcmpthashtinitt	convertertmetadatattypetkw_onlyteqtorderN(
t_determine_eq_orderRtTruetFalset	TypeErrorRt
ValueErrortcallabletFactoryt
_CountingAttr(
RRR R!R"R#R%R&R$tfactoryR'R(R)((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytattribIs4z$	cC`s�dj|�}dj|�dg}|rixIt|�D]+\}}|jtjd|d|��q7Wn
|jd�itd6td6}ttd	j|�d
d�|�||S(s�
    Create a tuple subclass to hold `Attribute`s for an `attrs` class.

    The subclass is a bare tuple with properties for names.

    class MyClassAttributes(tuple):
        __slots__ = ()
        x = property(itemgetter(0))
    s{}Attributessclass {}(tuple):s    __slots__ = ()tindext	attr_names    passt_attrs_itemgettert_attrs_propertys
ttexec(	tformatt	enumeratetappendt_tuple_property_patRtpropertytevaltcompiletjoin(tcls_namet
attr_namestattr_class_nametattr_class_templatetiR5tglobs((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_make_attr_tuple_class�s
	 
"t_Attributestattrst
base_attrstbase_attrs_mapcC`st|�jt�S(s�
    Check whether *annot* is a typing.ClassVar.

    The string comparison hack is used to avoid evaluating all string
    annotations which would put attrs-based classes at a performance
    disadvantage compared to plain old classes.
    (tstrt
startswitht_classvar_prefixes(tannot((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt
_is_class_varscC`sZt|dd�}|dkr"iSx1|jdD]"}|t|dd�kr0iSq0W|S(s$
    Get annotations for *cls*.
    t__annotations__iN(tgetattrRt__mro__(Rtannstbase_cls((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_get_annotationsscC`s|djS(sQ
    Key function for sorting to avoid re-creating a lambda for every class.
    i(tcounter(te((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_counter_getter-sc
`s�|j�t|�}|dk	rqgt|�D]\}}||f^q.}t|t�s�|jdt�q�nD|tkr�d��j	�D�}g}t
�}	x�|j	�D]�\}
}t|�r�q�n|	j|
��j
|
t�}t|t�s%|tkrt�}q%td|�}n|j|
|f�q�W||	}
t|
�dkr�tddjt|
d�fd���d��q�n%td	��j	�D�dd
��}g|D]3\}
}tjd|
d|d
|j
|
��^q�}g}i}d�|D�}x�|jdd!D]�}t|dd�}|dk	r"xY|D]N}|j
|j�}|dkrM|j|�|||j<|||j<qMqMWq"q"Wg||D]}|j^q�}t|j|�}|r+g|D]}|jdt�^q�}g|D]}|jdt�^q
}n|||�}t}xmd�|D�D][}|tkr�|jtkr�t d|f��n|tkrR|jtk	rRt}qRqRWt!|||f�S(s�
    Transform all `_CountingAttr`s on a class into `Attribute`s.

    If *these* is passed, use that and don't look for them on the class.

    Return an `_Attributes`.
    tkeycS`s+h|]!\}}t|t�r|�qS((t
isinstanceR1(t.0tnametattr((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<setcomp>Fs		Ris1The following `attr.ib`s lack a type annotation: s, c`s�j|�jS(N(tgetRX(tn(tcd(s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt<lambda>]R8t.cs`s0|]&\}}t|t�r||fVqdS(N(R\R1(R]R^R_((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>ds	cS`s|djS(Ni(RX(RY((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyRchR8R^tcaR&cS`si|]}||j�qS((R^(R]ta((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys
<dictcomp>ts	ii����t__attrs_attrs__R'cs`s3|])}|jtk	r|jtkr|VqdS(N(R#R,R'(R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�ssnNo mandatory attributes allowed after an attribute with a default value or factory.  Attribute in question: %rN("t__dict__RWRRR\R	tsortRZR+titemstsetRQtaddR`RR1R3R<tlenRRAtsortedt	Attributetfrom_counting_attrRTRSR^RHRt_assocR,RR.RI(Rtthesetauto_attribsR'RUR^Retca_listtca_namestannot_namesR5R&Rftunannotatedt	own_attrsRKt
base_attr_mapttaken_attr_namesRVt	sub_attrstprev_aRCt
AttrsClassRJthad_default((Rbs2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_transform_attrs4st	+	

5=


 %(
cC`s
t��dS(s4
    Attached to frozen classes as __setattr__.
    N(R(RR^tvalue((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_frozen_setattrs�scC`s
t��dS(s4
    Attached to frozen classes as __delattr__.
    N(R(RR^((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_frozen_delattrs�st
_ClassBuilderc
B`s�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd�Zd�ZRS(s(
    Iteratively build *one* class.
    t_clst	_cls_dictt_attrst_base_namest_attr_namest_slotst_frozent
_weakref_slott_cache_hasht_has_post_initt_delete_attribst_base_attr_mapt_is_excc

C`s$t||||�\}
}}||_|r<t|j�ni|_|
|_td�|D��|_||_t	d�|
D��|_
||_|p�t|�|_
||_||_tt|dt��|_t|�|_|	|_|j|jd<|r t|jd<t|jd<ndS(Ncs`s|]}|jVqdS(N(R^(R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�scs`s|]}|jVqdS(N(R^(R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�st__attrs_post_init__Rgt__setattr__t__delattr__(RR�tdictRhR�R�RkR�R�ttupleR�R�t_has_frozen_base_classR�R�R�tboolRSR,R�R�R�R�R�(
RRRrtslotstfrozentweakref_slotRsR't
cache_hashtis_excRJRKtbase_map((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt__init__�s&							
cC`sdjd|jj�S(Ns<_ClassBuilder(cls={cls})>R(R:R�R(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�scC`s'|jtkr|j�S|j�SdS(s�
        Finalize class based on the accumulated configuration.

        Builder cannot be used after calling this method.
        N(R�R+t_create_slots_classt_patch_original_class(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytbuild_class�s
cC`s�|j}|j}|jr~x`|jD]R}||kr%t||t�tk	r%yt||�Wqwtk
rsqwXq%q%Wnx-|jj	�D]\}}t
|||�q�W|jr�t|dd�}|r�t
d��nd�}t
|d|�n|S(sA
        Apply accumulated methods and return the class.
        t__setstate__s�Currently you cannot use hash caching if you specify your own __setstate__ method.See https://github.com/python-attrs/attrs/issues/494 .cS`st|td�dS(N(tsetattrt_hash_cache_fieldR(t	chss_selft_((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytcache_hash_set_statesN(R�R�R�R�RSt	_sentineltdelattrtAttributeErrorR�RjR�R�RtNotImplementedError(RRt
base_namesR^R�texisting_set_state_methodR�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s(			
		c`sQ�j}�fd�t�j�D�}t}x=�jjdd!D](}dt|dd�krBt}PqBqBW�j}�j	r�dt�jdd�kr�d|kr�|r�|d7}ng|D]}||kr�|^q�}�j
r�|jt�nt
|�|d<t�jdd�}|dk	r7||d<nt
d��jD����fd	�}	�j
���fd
�}
|	|d<|
|d<t�j��jj�jj|�}x�|jj�D]�}t|ttf�r�t|jd
d�}
nt|d
d�}
|
sq�nx0|
D](}|j�jkrt||�qqWq�W|S(sL
        Build and return a new class with a `__slots__` attribute.
        c`s8i|].\}}|t�j�dkr||�qS(Rht__weakref__(RhR�(R�R�(R]tktv(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pys
<dictcomp>*s		ii����R�Rht	__slots__t__qualname__cs`s!|]}|dkr|VqdS(R�N((R]tan((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>Msc`st�fd��D��S(s9
            Automatically created by attrs.
            c3`s|]}t�|�VqdS(N(RS(R]R^(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>Ts(R�(R(tstate_attr_names(Rs2/mingw64/lib/python2.7/site-packages/attr/_make.pytslots_getstatePsc`sYtj|t�}x*t�|�D]\}}|||�q"W�rU|td�ndS(s9
            Automatically created by attrs.
            N(t_obj_setattrt__get__RotzipR�R(Rtstatet_ClassBuilder__bound_setattrR^R�(thash_caching_enabledR�(s2/mingw64/lib/python2.7/site-packages/attr/_make.pytslots_setstateXs
t__getstate__R�t__closure__(((R�N(R�RR�R,R�RTRSR+R�R�R�R<R�R�RR&Rt	__bases__RhtvaluesR\tclassmethodtstaticmethodt__func__t
cell_contentsR
(RR�Rbtweakref_inheritedRVtnamesR^t
slot_namestqualnameR�R�Rtitemt
closure_cellstcell((R�RR�s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�$sN			
%	
	

'
cC`s)|jt|jd|��|jd<|S(NtnsR(t_add_method_dunderst
_make_reprR�R�(RR�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytadd_repr�scC`sP|jjd�}|dkr-td��nd�}|j|�|jd<|S(NRs3__str__ can only be generated if a __repr__ exists.cS`s
|j�S(N(R(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt__str__�sR�(R�R`RR.R�(RR R�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytadd_str�s	cC`sd|jd<|S(Nt__hash__(RR�(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytmake_unhashable�s
cC`s;|jt|j|jd|jd|j��|jd<|S(NR�R�R�(R�t
_make_hashR�R�R�R�R�(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytadd_hash�s		c
C`sM|jt|j|j|j|j|j|j|j|j	��|j
d<|S(NR�(R�t
_make_initR�R�R�R�R�R�R�R�R�(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytadd_init�sc`s@�j}�fd�t�j�j�D�\|d<|d<�S(Nc3`s|]}�j|�VqdS(N(R�(R]tmeth(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�st__eq__t__ne__(R�t_make_eqR�R�(RRb((Rs2/mingw64/lib/python2.7/site-packages/attr/_make.pytadd_eq�s	'c`sN�j}�fd�t�j�j�D�\|d<|d<|d<|d<�S(Nc3`s|]}�j|�VqdS(N(R�(R]R�(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�st__lt__t__le__t__gt__t__ge__(R�t_make_orderR�R�(RRb((Rs2/mingw64/lib/python2.7/site-packages/attr/_make.pyt	add_order�s	5cC`sdy|jj|_Wntk
r&nXy%dj|jj|jf�|_Wntk
r_nX|S(sL
        Add __module__ and __qualname__ to a *method* if possible.
        Rd(R�RR�RAR�R(Rtmethod((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s

(
R�R�R�R�R�R�R�R�R�R�R�R�R�(RRRR�R�RR�R�R�R�R�R�R�R�R�R�R�(((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s6	$			0	`		
				
	
srThe usage of `cmp` is deprecated and will be removed on or after 2021-06-01.  Please use `eq` and `order` instead.cC`s�|dk	r9t|dk	|dk	f�r9td��n|dk	retjttdd�||fS|dkrzt}n|dkr�|}n|tkr�|tkr�td��n||fS(sp
    Validate the combination of *cmp*, *eq*, and *order*. Derive the effective
    values of eq and order.
    s&Don't mix `cmp` with `eq' and `order`.t
stacklevelis-`order` can only be True if `eq` is True too.N(	RtanyR.twarningstwarnt_CMP_DEPRECATIONtDeprecationWarningR+R,(R!R(R)((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR*�s*
		c`sot|���\������������	�
���
�fd�}|dkra|S||�SdS(s� 
    A class decorator that adds `dunder
    <https://wiki.python.org/moin/DunderAlias>`_\ -methods according to the
    specified attributes using `attr.ib` or the *these* argument.

    :param these: A dictionary of name to `attr.ib` mappings.  This is
        useful to avoid the definition of your attributes within the class body
        because you can't (e.g. if you want to add ``__repr__`` methods to
        Django models) or don't want to.

        If *these* is not ``None``, ``attrs`` will *not* search the class body
        for attributes and will *not* remove any attributes from it.

        If *these* is an ordered dict (`dict` on Python 3.6+,
        `collections.OrderedDict` otherwise), the order is deduced from
        the order of the attributes inside *these*.  Otherwise the order
        of the definition of the attributes is used.

    :type these: `dict` of `str` to `attr.ib`

    :param str repr_ns: When using nested classes, there's no way in Python 2
        to automatically detect that.  Therefore it's possible to set the
        namespace explicitly for a more meaningful ``repr`` output.
    :param bool repr: Create a ``__repr__`` method with a human readable
        representation of ``attrs`` attributes..
    :param bool str: Create a ``__str__`` method that is identical to
        ``__repr__``.  This is usually not necessary except for
        `Exception`\ s.
    :param bool eq: If ``True`` or ``None`` (default), add ``__eq__`` and
        ``__ne__`` methods that check two instances for equality.

        They compare the instances as if they were tuples of their ``attrs``
        attributes, but only iff the types of both classes are *identical*!
    :type eq: `bool` or `None`
    :param bool order: If ``True``, add ``__lt__``, ``__le__``, ``__gt__``,
        and ``__ge__`` methods that behave like *eq* above and allow instances
        to be ordered. If ``None`` (default) mirror value of *eq*.
    :type order: `bool` or `None`
    :param cmp: Setting to ``True`` is equivalent to setting ``eq=True,
        order=True``. Deprecated in favor of *eq* and *order*, has precedence
        over them for backward-compatibility though. Must not be mixed with
        *eq* or *order*.
    :type cmp: `bool` or `None`
    :param hash: If ``None`` (default), the ``__hash__`` method is generated
        according how *eq* and *frozen* are set.

        1. If *both* are True, ``attrs`` will generate a ``__hash__`` for you.
        2. If *eq* is True and *frozen* is False, ``__hash__`` will be set to
           None, marking it unhashable (which it is).
        3. If *eq* is False, ``__hash__`` will be left untouched meaning the
           ``__hash__`` method of the base class will be used (if base class is
           ``object``, this means it will fall back to id-based hashing.).

        Although not recommended, you can decide for yourself and force
        ``attrs`` to create one (e.g. if the class is immutable even though you
        didn't freeze it programmatically) by passing ``True`` or not.  Both of
        these cases are rather special and should be used carefully.

        See our documentation on `hashing`, Python's documentation on
        `object.__hash__`, and the `GitHub issue that led to the default \
        behavior <https://github.com/python-attrs/attrs/issues/136>`_ for more
        details.
    :type hash: ``bool`` or ``None``
    :param bool init: Create a ``__init__`` method that initializes the
        ``attrs`` attributes.  Leading underscores are stripped for the
        argument name.  If a ``__attrs_post_init__`` method exists on the
        class, it will be called after the class is fully initialized.
    :param bool slots: Create a `slotted class <slotted classes>` that's more
        memory-efficient.
    :param bool frozen: Make instances immutable after initialization.  If
        someone attempts to modify a frozen instance,
        `attr.exceptions.FrozenInstanceError` is raised.

        Please note:

            1. This is achieved by installing a custom ``__setattr__`` method
               on your class, so you can't implement your own.

            2. True immutability is impossible in Python.

            3. This *does* have a minor a runtime performance `impact
               <how-frozen>` when initializing new instances.  In other words:
               ``__init__`` is slightly slower with ``frozen=True``.

            4. If a class is frozen, you cannot modify ``self`` in
               ``__attrs_post_init__`` or a self-written ``__init__``. You can
               circumvent that limitation by using
               ``object.__setattr__(self, "attribute_name", value)``.

    :param bool weakref_slot: Make instances weak-referenceable.  This has no
        effect unless ``slots`` is also enabled.
    :param bool auto_attribs: If True, collect `PEP 526`_-annotated attributes
        (Python 3.6 and later only) from the class body.

        In this case, you **must** annotate every field.  If ``attrs``
        encounters a field that is set to an `attr.ib` but lacks a type
        annotation, an `attr.exceptions.UnannotatedAttributeError` is
        raised.  Use ``field_name: typing.Any = attr.ib(...)`` if you don't
        want to set a type.

        If you assign a value to those attributes (e.g. ``x: int = 42``), that
        value becomes the default value like if it were passed using
        ``attr.ib(default=42)``.  Passing an instance of `Factory` also
        works as expected.

        Attributes annotated as `typing.ClassVar`, and attributes that are
        neither annotated nor set to an `attr.ib` are **ignored**.

        .. _`PEP 526`: https://www.python.org/dev/peps/pep-0526/
    :param bool kw_only: Make all attributes keyword-only (Python 3+)
        in the generated ``__init__`` (if ``init`` is ``False``, this
        parameter is ignored).
    :param bool cache_hash: Ensure that the object's hash code is computed
        only once and stored on the object.  If this is set to ``True``,
        hashing must be either explicitly or implicitly enabled for this
        class.  If the hash code is cached, avoid any reassignments of
        fields involved in hash code computation or mutations of the objects
        those fields point to after object creation.  If such changes occur,
        the behavior of the object's hash code is undefined.
    :param bool auto_exc: If the class subclasses `BaseException`
        (which implicitly includes any subclass of any exception), the
        following happens to behave like a well-behaved Python exceptions
        class:

        - the values for *eq*, *order*, and *hash* are ignored and the
          instances compare and hash by the instance's ids (N.B. ``attrs`` will
          *not* remove existing implementations of ``__hash__`` or the equality
          methods. It just won't add own ones.),
        - all attributes that are either passed into ``__init__`` or have a
          default value are additionally available as a tuple in the ``args``
          attribute,
        - the value of *str* is ignored leaving ``__str__`` to base classes.

    .. versionadded:: 16.0.0 *slots*
    .. versionadded:: 16.1.0 *frozen*
    .. versionadded:: 16.3.0 *str*
    .. versionadded:: 16.3.0 Support for ``__attrs_post_init__``.
    .. versionchanged:: 17.1.0
       *hash* supports ``None`` as value which is also the default now.
    .. versionadded:: 17.3.0 *auto_attribs*
    .. versionchanged:: 18.1.0
       If *these* is passed, no attributes are deleted from the class body.
    .. versionchanged:: 18.1.0 If *these* is ordered, the order is retained.
    .. versionadded:: 18.2.0 *weakref_slot*
    .. deprecated:: 18.2.0
       ``__lt__``, ``__le__``, ``__gt__``, and ``__ge__`` now raise a
       `DeprecationWarning` if the classes compared are subclasses of
       each other. ``__eq`` and ``__ne__`` never tried to compared subclasses
       to each other.
    .. versionchanged:: 19.2.0
       ``__lt__``, ``__le__``, ``__gt__``, and ``__ge__`` now do not consider
       subclasses comparable anymore.
    .. versionadded:: 18.2.0 *kw_only*
    .. versionadded:: 18.2.0 *cache_hash*
    .. versionadded:: 19.1.0 *auto_exc*
    .. deprecated:: 19.2.0 *cmp* Removal on or after 2021-06-01.
    .. versionadded:: 19.2.0 *eq* and *order*
    c
`s�t|dd�dkr'td��n�tko?t|t�}t|�
������|�	}�	tkr�|j�
�n�tkr�|j�n�tkr�|r�|j	�n�tkr�|r�|j
�n�tk	r�tk	r�dk	rtd��n��tks8�dkr2�tks8|rP�r�td��q�n\�tks��dkr��tkr��tkr�|j�n�r�td��n|j
��tkr�|j�n�r�td��n|j�S(Nt	__class__s(attrs only works with new-style classes.s6Invalid value for hash.  Must be True, False, or None.slInvalid value for cache_hash.  To use hash caching, hashing must be either explicitly or implicitly enabled.sFInvalid value for cache_hash.  To use hash caching, init must be True.(RSRR-R+t
issubclasst
BaseExceptionR�R�R�R�R�R,R�R�R�R�(RR�tbuilder(Rstauto_excR�R(R�R"R#R'R)R trepr_nsR�RMRrR�(s2/mingw64/lib/python2.7/site-packages/attr/_make.pytwrap�sP	


$*0


N(R*R(t	maybe_clsRrR�R R!R"R#R�R�R�RMRsR'R�R�R(R)R�((RsR�R�R(R�R"R#R'R)R R�R�RMRrR�s2/mingw64/lib/python2.7/site-packages/attr/_make.pyRJ�s
�9DcC`s1t|jdd�tjko0|jjtjkS(sb
        Check whether *cls* has a frozen ancestor by looking at its
        __setattr__.
        RN(RSR�RR�RR(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�scC`s
|jtkS(sb
        Check whether *cls* has a frozen ancestor by looking at its
        __setattr__.
        (R�R�(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�sc`st�fd�|D��S(s:
    Create a tuple of all values of *obj*'s *attrs*.
    c3`s!|]}t�|j�VqdS(N(RSR^(R]Rf(tobj(s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>s(R�(R�RJ((R�s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_attrs_to_tuplescC`s�tj�}d}d}x�tr�dj||jt|d|j�|�}ddt|�f|f}t	j
j||�|kr�|S|d7}dj|�}qWdS(sF
    Create a "filename" suitable for a function being generated.
    R8is <attrs generated {0} {1}.{2}{3}>R�s-{0}N(tuuidtuuid4R+R:RRSRRRMt	linecachetcachet
setdefault(Rt	func_namet	unique_idtextratcounttunique_filenamet
cache_line((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_generate_unique_filename"s			
c`sJtd��D���d}t|d�}t|��dg����fd�}|r��j|dt�|r�|dt|d��j|dd	�n|d
t|d��j|dt�n
|d|�d
j��}i}i}	t||d�}
t|
||	�t|�d|j
t�|ftj
|<|	dS(Ncs`sB|]8}|jtks6|jdkr|jtkr|VqdS(N(R"R+RR((R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>Bss        R"sdef __hash__(self):c`sd�j||d|d�fg�x&�D]}�j|d|j�q-W�j|d�dS(s�
        Generate the code for actually computing the hash code.
        Below this will either be returned directly or used to compute
        a value which is then cached, depending on the value of cache_hash
        shash((s        %d,s        self.%s,s    ))N(textendR<R^(tprefixtindentRf(RJtmethod_linest	type_hash(s2/mingw64/lib/python2.7/site-packages/attr/_make.pytappend_hash_computation_linesLs
 
sif self.%s is None:sobject.__setattr__(self, '%s', it)s
self.%s = sreturn self.%ssreturn s
R9R�(R�R�R"R<R�RAR@R?RmRt
splitlinesR+R�R�(RRJR�R�ttabR�RtscriptRGtlocstbytecode((RJRRs2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�@s6	
	cC`s"t||dtdt�|_|S(s%
    Add a hash method to *cls*.
    R�R�(R�R,R�(RRJ((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt	_add_hash|scC`s$|j|�}|tkrtS|S(s^
    Check equality and either forward a NotImplemented or return the result
    negated.
    (R�tNotImplemented(Rtothertresult((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��sc
C`s/g|D]}|jr|^q}t|d�}dddg}|r�|jd�dg}x<|D]4}|jd|jf�|jd|jf�qcW||d	g7}n
|jd
�dj|�}i}i}t||d�}	t|	||�t|�d|j	t
�|ftj|<|d
t
fS(NR(sdef __eq__(self, other):s-    if other.__class__ is not self.__class__:s        return NotImplementeds
    return  (s
    ) == (s        self.%s,s        other.%s,s    )s    return Trues
R9R�(R(R�R<R^RAR@R?RmRRR+R�R�R�(
RRJRfR�tlinestothersR	RGR
R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s."	
	

	c`s}g�D]}|jr|^q��fd���fd�}�fd�}�fd�}�fd�}||||fS(Nc`s
t|��S(s&
        Save us some typing.
        (R�(R�(RJ(s2/mingw64/lib/python2.7/site-packages/attr/_make.pytattrs_to_tuple�sc`s,|j|jkr(�|��|�kStS(s1
        Automatically created by attrs.
        (R�R
(RR(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��sc`s,|j|jkr(�|��|�kStS(s1
        Automatically created by attrs.
        (R�R
(RR(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��sc`s,|j|jkr(�|��|�kStS(s1
        Automatically created by attrs.
        (R�R
(RR(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��sc`s,|j|jkr(�|��|�kStS(s1
        Automatically created by attrs.
        (R�R
(RR(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s(R)(RRJRfR�R�R�R�((RJRs2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s"				cC`s7|dkr|j}nt||�\|_|_|S(s5
    Add equality methods to *cls* with *attrs*.
    N(RRgR�R�R�(RRJ((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_add_eq�sc`s,td�|D�����fd�}|S(s^
    Make a repr method that includes relevant *attrs*, adding *ns* to the full
    name.
    cs`sE|];}|jtk	r|j|jtkr3tn|jfVqdS(N(R R,R^R+(R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�sc		`sby
tj}Wn#tk
r2t�}|t_nXt|�|krIdS|j}�dkr�t|dd�}|dk	r�|jdd�d}q�|j	}n�d|j	}|j
t|��z�|dg}t}xX�D]P\}}|r�t}n
|j
d�|j|d	|t||t��f�q�Wd
j|�dSWd|jt|��XdS(
s1
        Automatically created by attrs.
        s...R�s>.ii����Rdt(s, t=R8RN(t_already_repringtworking_setR�RktidR�RRStrsplitRRlR+R,R<RRRAtremove(	RRtreal_clsR�t
class_nameRtfirstR^t	attr_repr(tattr_names_with_reprsR�(s2/mingw64/lib/python2.7/site-packages/attr/_make.pyRs4

	
		
&(R�(RJR�R((RR�s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s

*cC`s.|dkr|j}nt||�|_|S(s%
    Add a repr method to *cls*.
    N(RRgR�R(RR�RJ((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt	_add_repr1scC`sg|D]$}|js%|jtk	r|^q}t|d�}	t|||||||�\}
}}i}
t|
|	d�}td�|D��}|jitd6|d6�|tkr�t	|d<nt
|||
�t|
�d|
j
t�|	ftj|	<|
d}||_|S(NR#R9cs`s|]}|j|fVqdS(N(R^(R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>HsRt	attr_dictt_cached_setattrR�(R#RRR�t_attrs_to_init_scriptR@R�tupdateR+R�R?RmRRR�R�RR(RRJt	post_initR�R�R�RyR�RfR�R	RGtannotationsR
RR!R�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�<s$1$
	
	cC`sXt|�std��nt|dd�}|dkrTtdjd|���n|S(s�
    Return the tuple of ``attrs`` attributes for a class.

    The tuple also allows accessing the fields by their names (see below for
    examples).

    :param type cls: Class to introspect.

    :raise TypeError: If *cls* is not a class.
    :raise attr.exceptions.NotAnAttrsClassError: If *cls* is not an ``attrs``
        class.

    :rtype: tuple (with name accessors) of `attr.Attribute`

    ..  versionchanged:: 16.2.0 Returned tuple allows accessing the fields
        by name.
    sPassed object must be a class.Rgs({cls!r} is not an attrs-decorated class.RN(RR-RSRR
R:(RRJ((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytfieldsascC`sht|�std��nt|dd�}|dkrTtdjd|���ntd�|D��S(s8
    Return an ordered dictionary of ``attrs`` attributes for a class, whose
    keys are the attribute names.

    :param type cls: Class to introspect.

    :raise TypeError: If *cls* is not a class.
    :raise attr.exceptions.NotAnAttrsClassError: If *cls* is not an ``attrs``
        class.

    :rtype: an ordered dict where keys are attribute names and values are
        `attr.Attribute`\ s. This will be a `dict` if it's
        naturally ordered like on Python 3.6+ or an
        :class:`~collections.OrderedDict` otherwise.

    .. versionadded:: 18.1.0
    sPassed object must be a class.Rgs({cls!r} is not an attrs-decorated class.Rcs`s|]}|j|fVqdS(N(R^(R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�sN(RR-RSRR
R:R	(RRJ((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytfields_dict}scC`setjtkrdSxKt|j�D]:}|j}|dk	r#|||t||j��q#q#WdS(s�
    Validate all attributes on *inst* that have a validator.

    Leaves all exceptions through.

    :param inst: Instance of a class with ``attrs`` attributes.
    N(	Rt_run_validatorsR,R'R�RRRSR^(tinstRfR�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytvalidate�s	cC`s
d|jkS(NR�(Rh(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt_is_slot_cls�scC`s||kot||�S(s>
    Check if the attribute name comes from a slot class.
    (R,(ta_nameRy((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt
_is_slot_attr�sc`s�g}t�fd�|D��}|tkr�|tkr\|jd�d�}	d�}
q�|jd�|r|jd�n�fd�}	�fd�}
nd�}	d	�}
g}g}g}
i}id.d
6}xI|D]A}|jr�|
j|�n|j}|jjd�}t|jt	�}|rE|jj
rEd}nd
}|jtkrt|r�t
j|j�}|jd.k	r�|j|
||dj|���tj|j�}|j||<n#|j|	||dj|���|jj||<q�|jd.k	rO|j|
|djd|���tj|j�}|j||<q�|j|	|djd|���nn|jtk	r"|r"djd|d|�}|jr�|j|�n
|j|�|jd.k	r	|j|
||��|j|tj|j�<q�|j|	||��n�|redjd|�}|jrS|j|�n
|j|�|jdjd|��t
j|j�}|jd.k	r|jd|
||��|jd�|jd|
||dj|���|j|tj|j�<nN|jd|	||��|jd�|jd|	||dj|���|jj||<n}|jr~|j|�n
|j|�|jd.k	r�|j|
||��|j|tj|j�<n|j|	||��|jtkr�|jd.kr�|jd.k	r�|j||<q�q�W|
r�t|d<|jd�xk|
D]`}dj|j�}dj|j�}|jdj|||j��|j||<|||<qGWn|r�|jd�n|r|r�|r�d}q�d}nd}|j|td f�n|r>d!jd"�|D��}|jd#|f�nd$j|�}|r�trhtd%��n|d&jd'|r�d$nd
d(d$j|��7}nd)jd*|d+|r�d,j|�nd-�||fS(/s�
    Return a script of an initializer for *attrs* and a dict of globals.

    The globals are expected by the generated script.

    If *frozen* is True, we cannot set the attributes directly so we use
    a cached ``object.__setattr__``.
    c3`s!|]}t|j��VqdS(N(R.R^(R]Rf(Ry(s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�ss8_setattr = _cached_setattr.__get__(self, self.__class__)cS`sdi|d6|d6S(Ns(_setattr('%(attr_name)s', %(value_var)s)R5t	value_var((R5R/((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt
fmt_setter�scS`s,tj|�}di|d6|d6|d6S(Ns2_setattr('%(attr_name)s', %(conv)s(%(value_var)s))R5R/tconv(t_init_converter_patR:(R5R/t	conv_name((s2/mingw64/lib/python2.7/site-packages/attr/_make.pytfmt_setter_with_converter�s
s_inst_dict = self.__dict__c`sFt|��r*di|d6|d6}ndi|d6|d6}|S(Ns(_setattr('%(attr_name)s', %(value_var)s)R5R/s+_inst_dict['%(attr_name)s'] = %(value_var)s(R.(R5R/tres(Ry(s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR0�sc`sJtj|�}t|��r'd}nd}|i|d6|d6|d6S(Ns/_setattr('%(attr_name)s', %(c)s(%(value_var)s))s2_inst_dict['%(attr_name)s'] = %(c)s(%(value_var)s)R5R/tc(R2R:R.(R5R/R3ttmpl(Ry(s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR4�s	cS`sdi|d6|d6S(Nsself.%(attr_name)s = %(value)sR5R�((R5R�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR0scS`s,tj|�}di|d6|d6|d6S(Ns,self.%(attr_name)s = %(conv)s(%(value_var)s)R5R/R1(R2R:(R5R/R3((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR4	s
treturnR�RR8s({0})s attr_dict['{attr_name}'].defaultR5s+{arg_name}=attr_dict['{attr_name}'].defaulttarg_names{arg_name}=NOTHINGsif {arg_name} is not NOTHING:s    selse:Rs#if _config._run_validators is True:s__attr_validator_{}s	__attr_{}s    {}(self, {}, self.{})sself.__attrs_post_init__()s_setattr('%s', %s)s_inst_dict['%s'] = %ssself.%s = %sRt,cs`s%|]}|jrd|jVqdS(sself.N(R#R^(R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�ss BaseException.__init__(self, %s)s, s7Keyword-only arguments only work on Python 3 and later.s {leading_comma}*, {kw_only_args}t
leading_commatkw_only_argss(def __init__(self, {args}):
    {lines}
targsRs
    tpassN(R�R+R<RRR^tlstripR\RR0t
takes_selfR#R,t_init_factory_patR:R$R2R2RR'R&RR�RARR(RJR�R�R%R�RyR�Rtany_slot_ancestorsR0R4R=R<tattrs_to_validatetnames_for_globalsR&RfR5R9thas_factoryt
maybe_selftinit_factory_nameR3targtval_nametinit_hash_cachetvals((Rys2/mingw64/lib/python2.7/site-packages/attr/_make.pyR#�s	



		

				
			
	


	
-



			!RocB`s}eZdZdZdddeddd
�Zd�Zedd��Z	e
d��Zd�Zd�Z
d�Zd�ZRS(s 
    *Read-only* representation of an attribute.

    :attribute name: The name of the attribute.

    Plus *all* arguments of `attr.ib` (except for ``factory``
    which is only syntactic sugar for ``default=Factory(...)``.

    For the version history of the fields, see `attr.ib`.
    R^RRR R(R)R"R#R%R&R$R'cC`s�t|||
�\}}
tj|t�}|d|�|d|�|d|�|d|�|d|�|d|
�|d|�|d|�|d	|
�|d
|r�t|�nt�|d|	�|d|�dS(
NR^RRR R(R)R"R#R$R%R&R'(R*R�R�RoRt_empty_metadata_singleton(RR^RRR R!R"R#R%R&R$R'R(R)t
bound_setattr((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s"









cC`s
t��dS(N(R(RR^R�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�sc`s}|dkr�j}n�jdk	r6td��n�fd�tjD�}|d|d�jd�jd|dd|�S(Ns8Type annotation and type argument cannot both be presentc`s.i|]$}|dkrt�|�|�qS(R^RRR&(R^RRR&(RS(R]R�(Re(s2/mingw64/lib/python2.7/site-packages/attr/_make.pys
<dictcomp> s	R^RRR&R!(RR&R.RoR�t
_validatort_default(RR^ReR&t	inst_dict((Res2/mingw64/lib/python2.7/site-packages/attr/_make.pyRps
			cC`s&tjttdd�|jo%|jS(sD
        Simulate the presence of a cmp attribute and warn.
        R�i(R�R�R�R�R(R)(R((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR!3scK`s&tj|�}|j|j��|S(s2
        Copy *self* and apply *changes*.
        (tcopyt	_setattrsRj(Rtchangestnew((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyRq=sc`st�fd��jD��S(s(
        Play nice with pickle.
        c3`s9|]/}|dkr$t�|�nt�j�VqdS(R%N(RSR�R%(R]R^(R(s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>Ms(R�R�(R((Rs2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�HscC`s|jt|j|��dS(s(
        Play nice with pickle.
        N(RRR�R�(RR�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�QscC`shtj|t�}xO|D]G\}}|dkrA|||�q|||rYt|�nt�qWdS(NR%(R�R�RoRRL(Rtname_values_pairsRMR^R�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyRRWs(R^RRR R(R)R"R#R%R&R$R'N(RRRR�RR,R�R�R�RpR>R!RqR�R�RR(((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyRo�s6
	
				R^RRR R!R(R)R"R%R#R1cB`s�eZdZdZed
�dD��edddddddedddedededede�
fZ	dZ
d�Zd�Zd�Z
RS(s
    Intermediate representation of attributes that uses a counter to preserve
    the order in which the attributes have been defined.

    *Internal* data structure of the attrs library.  Running into is most
    likely the result of a bug like a forgotten `@attr.s` decorator.
    RXROR R(R)R"R#R%RNR$R&R'cc`sT|]J}td|dtdd
dtdd
dtdtdtdtd	t�
Vqd
S(R^RRR R!R"R#R'R(R)N(RoRRR+R,(R]R^((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>�sR^RRR!ic

C`s�tjd7_tj|_||_|rQt|ttf�rQt|�|_n	||_||_	||_
||_||_||_
||_||_|	|_|
|_dS(Ni(R1tcls_counterRXROR\tlistR�tand_RNR R(R)R"R#R$R%R&R'(
RRRR R!R"R#R$R%R&R'R(R)((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR��s										cC`s4|jdkr||_nt|j|�|_|S(s�
        Decorator that adds *meth* to the list of validators.

        Returns *meth* unchanged.

        .. versionadded:: 17.1.0
        N(RNRRX(RR�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�scC`s4|jtk	rt��nt|dt�|_|S(s�
        Decorator that allows to set the default for an attribute.

        Returns *meth* unchanged.

        :raises DefaultAlreadySetError: If default has been set before.

        .. versionadded:: 17.1.0
        R@(RORRR0R+(RR�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�s
(RXROR R(R)R"R#R%RNR$R&R'(RXROR R(R)R"R#N(RRRR�R�RoRR+R,RgRVR�RR(((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR1zsJ


	!	R�R0cB`s,eZdZe�Ze�Zed�ZRS(s�
    Stores a factory callable.

    If passed as the default value to `attr.ib`, the factory is used to
    generate a new value.

    :param callable factory: A callable that takes either none or exactly one
        mandatory positional argument depending on *takes_self*.
    :param bool takes_self: Pass the partially initialized instance that is
        being initialized as a positional argument.

    .. versionadded:: 17.1.0  *takes_self*
    cC`s||_||_dS(s�
        `Factory` is part of the default machinery so if we want a default
        value here, we have to implement it ourselves.
        N(R2R@(RR2R@((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR�s	(RRRR3R2R@R,R�(((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyR0�s		cK`s(t|t�r|}n:t|ttf�rFtd�|D��}ntd��|jdd�}t|||dkrin
i|d6�}y%tj	d�j
jdd�|_Wnt
tfk
r�nX|jdd�}t||jd�|jd	��\|d<|d	<td
||�|�S(sR
    A quick way to create a new class called *name* with *attrs*.

    :param name: The name for the new class.
    :type name: str

    :param attrs: A list of names or a dictionary of mappings of names to
        attributes.

        If *attrs* is a list or an ordered dict (`dict` on Python 3.6+,
        `collections.OrderedDict` otherwise), the order is deduced from
        the order of the names or attributes inside *attrs*.  Otherwise the
        order of the definition of the attributes is used.
    :type attrs: `list` or `dict`

    :param tuple bases: Classes that the new class will subclass.

    :param attributes_arguments: Passed unmodified to `attr.s`.

    :return: A new class with *attrs*.
    :rtype: type

    .. versionadded:: 17.1.0 *bases*
    .. versionchanged:: 18.1.0 If *attrs* is ordered, the order is retained.
    cs`s|]}|t�fVqdS(N(R3(R]Rf((s2/mingw64/lib/python2.7/site-packages/attr/_make.pys	<genexpr>4ss(attrs argument must be a dict or a list.R�iRt__main__R!R(R)RrN(R\R�RWR�R-tpopRR&tsyst	_getframet	f_globalsR`RR�R.R*R�(R^RJtbasestattributes_argumentstcls_dictR%ttype_R!((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt
make_classs&	"/t
_AndValidatorcB`s eZdZe�Zd�ZRS(s2
    Compose many validators to a single one.
    cC`s(x!|jD]}||||�q
WdS(N(t_validators(RR*R_R�R�((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt__call__`s(RRRR3RdRe(((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyRcXs	cG`sOg}x6|D].}|jt|t�r1|jn|g�q
Wtt|��S(s�
    A validator that composes multiple validators into one.

    When called on a value, it runs all wrapped validators.

    :param validators: Arbitrary number of validators.
    :type validators: callables

    .. versionadded:: 17.1.0
    (RR\RcRdR�(t
validatorsRKR((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyRXes
(Wt
__future__RRRRQR�R[t	threadingR�R�toperatorRR8Rt_compatRRRRR	R
t
exceptionsRRR
RRtobjectR�R�R2RAR=ROR�RLR�RRRR+R,R3RHRIRQRWRZRR�R�R�R�R*RJR�R�R�R�R�RR�R�R�RtlocalRR�R R�R'R(R+R,R.R#RoR�R^t_aRfR"R1R0RbRcRX(((s2/mingw64/lib/python2.7/site-packages/attr/_make.pyt<module>s�.(
			�					k		�3	�				<			'	0	;	%						��X%~A