§
    ¦c«  ã                   óú   — d Z ddlmZ ddlmZ ddlmZ ddlmZ	 ddl
mZmZmZmZmZ ddlmZ 	 dd	d	d	d	d	d
dd
dd	ddd
d	dd
d	d	d	d
dœd„ZeZ eed
d	¬¦  «        Zed	d
d	d
d	d	d	dd	d	d	d	dœd„Zd
d	d	dœd„Zd
d	dœd„Zd	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_argsc                óˆ   ‡‡‡‡‡‡‡‡‡	‡
‡‡‡‡‡‡‡‡‡‡‡— ˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆ	ˆˆˆfd„Šˆ
ˆˆˆfd„}| €|S  || ¦  «        S )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).
    c                 óœ   •— t          di d| “d‰“d‰“d‰	“d‰“d‰
“d‰“d‰“d	‰“d
‰“d|“d‰“d‰“d‰“d‰“d‰“d‰“dd“d‰“d‰“d‰“d‰“ŽS )NÚ	maybe_clsr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Úcollect_by_mroTr   r   r    r!   © )r   )Úclsr   r   r   r   r   r    r   r   r   r   r   r!   r   r   r   r   r   r   r   r   s     €€€€€€€€€€€€€€€€€€€ú0/usr/lib/python3/dist-packages/attr/_next_gen.pyÚdo_itzdefine.<locals>.do_itY   s   ø€ Ýð 
ð 
ð 
Ø�cð
à�%ð
ð �ð
ð �ð	
ð
 $˜ð
ð �ð
ð �%ð
ð �6ð
ð &˜ð
ð �ð
ð &˜ð
ð �Gð
ð "�zð
ð �Xð
ð ˆrð
ð  �%ð!
ð" $˜ð#
ð$  ˜4ð%
ð& 0Ð/ð'
ð( "�zð)
ð* 0Ð/ð+
ð, "�zð-
ð 	
ó    c                 ó  •— ‰dt           j        fv}‰du r	‰€t          Š| j        D ]/}|j        t
          u r|rt          d¦  «        ‚t           j        Š nŒ0‰� ‰| ‰¦  «        S 	  ‰| d¦  «        S # t          $ r  ‰| d¦  «        cY S w xY w)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)r   ÚNO_OPr
   Ú	__bases__Ú__setattr__r	   Ú
ValueErrorr   )r'   Úhad_on_setattrÚbase_clsr   r)   r   r   s      €€€€r(   Úwrapzdefine.<locals>.wraps   sã   ø€ ð $¨Dµ'´-Ð+@Ð@ˆð �Uˆ?ˆ?˜zÐ1Ý/ˆJð œð 		ð 		ˆHØÔ#Õ'7Ð7Ð7Ø!ð Ý$ð7ñô ð õ
 %œ]�
Ø�ð 8ð Ð#Ø�5˜˜lÑ+Ô+Ð+ð	%Ø�5˜˜dÑ#Ô#Ð#øÝ(ð 	%ð 	%ð 	%Ø�5˜˜eÑ$Ô$Ð$Ð$Ð$ð	%øøøs   Á%A1 Á1B
Â	B
r&   )r$   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r2   r)   s    ```````````````````` @r(   Údefiner3      sÏ   øøøøøøøøøøøøøøøøøøøøø€ ðB
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð4!%ð !%ð !%ð !%ð !%ð !%ð !%ð !%ðJ ÐØˆàˆt�I‰ŒÐr*   )r   r   ©ÚdefaultÚ	validatorr   r   r   ÚmetadataÚ	converterÚfactoryr   r   r   r   Úaliasc                 ó:   — t          | |||||||||	|
||¬¦  «        S )zx
    Identical to `attr.ib`, except keyword-only and with some arguments
    removed.

    .. versionadded:: 20.1.0
    r4   )r   r4   s                r(   Úfieldr<   ¢   sB   € õ, ØØØØØØØØØØØØØðñ ô ð r*   )ÚrecurseÚfilterÚvalue_serializerc                ó*   — t          | |||d¬¦  «        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)Úinstr=   r>   r?   Úretain_collection_types)Ú_asdict)rA   r=   r>   r?   s       r(   r   r   É   s*   € õ ØØØØ)Ø $ðñ ô ð r*   )r=   r>   c                ó(   — t          | ||d¬¦  «        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)rA   r=   r>   rB   )Ú_astuple)rA   r=   r>   s      r(   r   r   Ù   s$   € õ Ø˜7¨6È4ðñ ô ð r*   )N)Ú__doc__Ú	functoolsr   Ú r   Ú_funcsr   rC   r   rE   Ú_maker   r	   r
   r   r   Ú
exceptionsr   r3   Úmutabler   r<   r&   r*   r(   ú<module>rM      sÇ  ððð ð Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð Ø %Ð %Ð %Ð %Ð %Ð %Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'ðð ð ð ð ð ð ð ð ð ð ð ð ð ð 2Ð 1Ð 1Ð 1Ð 1Ð 1ð ðCð Ø	ØØ	Ø	Ø
ØØØØØØØØØ
ØØØØØð-Cð Cð Cð Cð CðL €Ø	ˆ� °Ð	6Ñ	6Ô	6€ð
 ØØ	Ø	Ø	ØØØØØØ
ØØ
ð$ð $ð $ð $ð $ðN !¨Àð ð ð ð ð ð  "¨$ð 	ð 	ð 	ð 	ð 	ð 	ð 	r*   