Ë
    ÈúàeÜL  ã                   óv  — d Z ddlZddlZddlmZ ddlmZ ddlmZmZ ddl	m
Z
mZmZmZ ddlmZ dd	lmZ g d
¢Zd„ Zd„ Zed„ «       Z eddd¬«       G d„ d«      «       Zd„ Z eddd¬«       G d„ d«      «       Zd=d„Z eddd¬«       G d„ d«      «       Zd„ Z eddd¬«       G d„ d«      «       Zd„ Z eddd¬«       G d„ d«      «       Zd „ Z eddd¬«       G d!„ d"«      «       Z d#„ Z! eddd¬«       G d$„ d%«      «       Z"d>d&„Z# eddd¬«       G d'„ d(«      «       Z$d>d)„Z% eddd¬«       G d*„ d+«      «       Z&d,„ Z'd-„ Z(d.„ Z)d/„ Z* eddd¬«       G d0„ d1«      «       Z+d2„ Z, eddd¬«       G d3„ d4«      «       Z-d5„ Z. eddd¬«       G d6„ d7«      «       Z/d8„ Z0 eddd¬«       G d9„ d:«      «       Z1de2e3fd;œd<„Z4y)?z
Commonly useful validators.
é    N)Úcontextmanager)ÚPatterné   )Úget_run_validatorsÚset_run_validators)Ú_AndValidatorÚand_ÚattribÚattrs)Údefault_if_none)ÚNotCallableError)r	   Údeep_iterableÚdeep_mappingÚdisabledÚgeÚget_disabledÚgtÚin_Úinstance_ofÚis_callableÚleÚltÚ
matches_reÚmax_lenÚmin_lenÚnot_ÚoptionalÚprovidesÚset_disabledc                 ó   — t        |  «       y)a  
    Globally disable or enable running validators.

    By default, they are run.

    :param disabled: If ``True``, disable running all validators.
    :type disabled: bool

    .. warning::

        This function is not thread-safe!

    .. versionadded:: 21.3.0
    N©r   )r   s    ú1/usr/lib/python3/dist-packages/attr/validators.pyr   r   +   s   € ô ˜8�|Õ$ó    c                  ó   — t        «        S )zÀ
    Return a bool indicating whether validators are currently disabled or not.

    :return: ``True`` if validators are currently disabled.
    :rtype: bool

    .. versionadded:: 21.3.0
    )r   © r#   r"   r   r   =   s   € ô "Ó#Ð#Ð#r#   c               #   ób   K  — t        d«       	 d–— t        d«       y# t        d«       w xY w­w)z°
    Context manager that disables running validators within its context.

    .. warning::

        This context manager is not thread-safe!

    .. versionadded:: 21.3.0
    FNTr!   r%   r#   r"   r   r   I   s)   è ø€ ô �uÔð!Ûä˜4Õ øÔ˜4Õ üs   ‚/� “/Ÿ,¬/FT)ÚreprÚslotsÚhashc                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_InstanceOfValidatorc                 óÆ   — t        || j                  «      sKdj                  |j                  | j                  |j                  |¬«      }t        ||| j                  |«      ‚y)úP
        We use a callable class to be able to change the ``__repr__``.
        z?'{name}' must be {type!r} (got {value!r} that is a {actual!r}).)ÚnameÚtypeÚactualÚvalueN)Ú
isinstancer/   Úformatr.   Ú	__class__Ú	TypeError©ÚselfÚinstÚattrr1   Úmsgs        r"   Ú__call__z_InstanceOfValidator.__call___   sd   € ô ˜% §¡Ô+ØS×ZÑZØ—Y‘YØ—Y‘YØ—‘Øð	 [ó ˆCô ØØØ—	‘	Øó	ð ð ,r#   c                 ó"   — d| j                   ›d�S )Nz <instance_of validator for type ú>©r/   ©r7   s    r"   Ú__repr__z_InstanceOfValidator.__repr__q   ó   € Ø1°$·)±)°¸aÐ@Ð@r#   N©Ú__name__Ú
__module__Ú__qualname__r
   r/   r;   r@   r%   r#   r"   r+   r+   [   s   „ á‹8€Dòó$Ar#   r+   c                 ó   — t        | «      S )aÒ  
    A validator that raises a `TypeError` if the initializer is called
    with a wrong type for this particular attribute (checks are performed using
    `isinstance` therefore it's also valid to pass a tuple of types).

    :param type: The type to check for.
    :type type: type or tuple of type

    :raises TypeError: With a human readable error message, the attribute
        (of type `attrs.Attribute`), the expected type, and the value it
        got.
    )r+   r>   s    r"   r   r   u   ó   € ô   Ó%Ð%r#   )r'   Úfrozenr(   c                   ó4   — e Zd Z e«       Z e«       Zd„ Zd„ Zy)Ú_MatchesReValidatorc                 óº   — | j                  |«      sJdj                  |j                  | j                  j                  |¬«      }t	        ||| j                  |«      ‚y)r-   z9'{name}' must match regex {pattern!r} ({value!r} doesn't))r.   Úpatternr1   N)Ú
match_funcr3   r.   rL   Ú
ValueErrorr6   s        r"   r;   z_MatchesReValidator.__call__Š   s_   € ð �‰˜uÔ%ØM×TÑTØ—Y‘Y¨¯©×(<Ñ(<ÀEð Uó ˆCô ØØØ—‘Øó	ð ð	 &r#   c                 ó"   — d| j                   ›d�S )Nz"<matches_re validator for pattern r=   )rL   r?   s    r"   r@   z_MatchesReValidator.__repr__™   s   € Ø3°D·L±LÐ3CÀ1ÐEÐEr#   N)rC   rD   rE   r
   rL   rM   r;   r@   r%   r#   r"   rJ   rJ   …   s   „ á‹h€GÙ“€JòóFr#   rJ   c           
      ó  — t         j                  dt         j                  t         j                  f}||vrDdj	                  dj                  t        d„ t        |«      D «       «      «      «      }t        |«      ‚t        | t        «      r|rd}t        |«      ‚| }nt        j                  | |«      }|t         j                  u r|j                  }n+|t         j                  u r|j                  }n|j                  }t        ||«      S )aœ  
    A validator that raises `ValueError` if the initializer is called
    with a string that doesn't match *regex*.

    :param regex: a regex string or precompiled pattern to match against
    :param int flags: flags that will be passed to the underlying re function
        (default 0)
    :param callable func: which underlying `re` function to call. Valid options
        are `re.fullmatch`, `re.search`, and `re.match`; the default ``None``
        means `re.fullmatch`. For performance reasons, the pattern is always
        precompiled using `re.compile`.

    .. versionadded:: 19.2.0
    .. versionchanged:: 21.3.0 *regex* can be a pre-compiled pattern.
    Nz'func' must be one of {}.z, c              3   óD   K  — | ]  }|xr |j                   xs d –— Œ y­w)ÚNoneN)rC   )Ú.0Úes     r"   ú	<genexpr>zmatches_re.<locals>.<genexpr>±   s!   è ø€ ÒL°a�qÒ'˜QŸZ™ZÒ1¨6Ó1ÑLùs   ‚ zR'flags' can only be used with a string pattern; pass flags to re.compile() instead)ÚreÚ	fullmatchÚsearchÚmatchr3   ÚjoinÚsortedÚsetrN   r2   r   r5   ÚcompilerJ   )ÚregexÚflagsÚfuncÚvalid_funcsr:   rL   rM   s          r"   r   r   �   sÔ   € ô  —<‘< ¤r§y¡y´"·(±(Ð;€KØ�;ÑØ)×0Ñ0Ø�I‰IÜÑL¼3¸{Ó;KÔLÓLóó
ˆô
 ˜‹oÐä�%œÔ!ÙØfˆCÜ˜C“.Ð Ø‰ä—*‘*˜U EÓ*ˆàŒr�x‰xÑØ—]‘]‰
Ø	”—‘Ñ	Ø—^‘^‰
à×&Ñ&ˆ
ä˜w¨
Ó3Ð3r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_ProvidesValidatorc                 óº   — | j                   j                  |«      s@dj                  |j                  | j                   |¬«      }t	        ||| j                   |«      ‚y)r-   z<'{name}' must provide {interface!r} which {value!r} doesn't.)r.   Ú	interfacer1   N)re   Ú
providedByr3   r.   r5   r6   s        r"   r;   z_ProvidesValidator.__call__Ì   s_   € ð �~‰~×(Ñ(¨Ô/ØP×WÑWØ—Y‘Y¨$¯.©.Àð Xó ˆCô ØØØ—‘Øó	ð ð	 0r#   c                 ó"   — d| j                   ›d�S )Nz"<provides validator for interface r=   )re   r?   s    r"   r@   z_ProvidesValidator.__repr__Û   s   € Ø3°D·N±NÐ3EÀQÐGÐGr#   N)rC   rD   rE   r
   re   r;   r@   r%   r#   r"   rc   rc   È   s   „ á“€IòóHr#   rc   c                 óP   — ddl }|j                  dt        d¬«       t        | «      S )aE  
    A validator that raises a `TypeError` if the initializer is called
    with an object that does not provide the requested *interface* (checks are
    performed using ``interface.providedBy(value)`` (see `zope.interface
    <https://zopeinterface.readthedocs.io/en/latest/>`_).

    :param interface: The interface to check for.
    :type interface: ``zope.interface.Interface``

    :raises TypeError: With a human readable error message, the attribute
        (of type `attrs.Attribute`), the expected interface, and the
        value it got.

    .. deprecated:: 23.1.0
    r   NzZattrs's zope-interface support is deprecated and will be removed in, or after, April 2024.é   )Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarningrc   )re   rk   s     r"   r   r   ß   s0   € ó  à‡M�Mð	 äØð	 ô ô ˜iÓ(Ð(r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_OptionalValidatorc                 ó0   — |€y | j                  |||«       y ©N©Ú	validator©r7   r8   r9   r1   s       r"   r;   z_OptionalValidator.__call__þ   s   € Øˆ=Øà�‰�t˜T 5Õ)r#   c                 ó"   — d| j                   ›d�S )Nz<optional validator for z	 or None>rr   r?   s    r"   r@   z_OptionalValidator.__repr__  s   € Ø)¨$¯.©.Ð);¸9ÐEÐEr#   N)rC   rD   rE   r
   rs   r;   r@   r%   r#   r"   ro   ro   ú   s   „ á“€Iò*óFr#   ro   c                 ól   — t        | t        t        f«      rt        t	        | «      «      S t        | «      S )aü  
    A validator that makes an attribute optional.  An optional attribute is one
    which can be set to ``None`` in addition to satisfying the requirements of
    the sub-validator.

    :param Callable | tuple[Callable] | list[Callable] validator: A validator
        (or validators) that is used for non-``None`` values.

    .. versionadded:: 15.1.0
    .. versionchanged:: 17.1.0 *validator* can be a list of validators.
    .. versionchanged:: 23.1.0 *validator* can also be a tuple of validators.
    )r2   ÚlistÚtuplero   r   rr   s    r"   r   r     s-   € ô �)œd¤E˜]Ô+Ü!¤-°	Ó":Ó;Ð;ä˜iÓ(Ð(r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_InValidatorc                 ó¸   — 	 || j                   v }|s8d|j                  › d| j                   ›d|›d�}t        ||| j                   |«      ‚y # t        $ r d}Y ŒHw xY w)NFú'z' must be in ú (got ú))Úoptionsr5   r.   rN   )r7   r8   r9   r1   Ú
in_optionsr:   s         r"   r;   z_InValidator.__call__  su   € ð	Ø $§,¡,Ð.ˆJñ Ø�d—i‘i�[ ¨d¯l©lÐ-=¸VÀEÀ9ÈAÐNˆCÜØØØ—‘Øó	ð ð øô ò 	ØŠJð	ús   ‚A ÁAÁAc                 ó"   — d| j                   ›d�S )Nz<in_ validator with options r=   ©r   r?   s    r"   r@   z_InValidator.__repr__.  s   € Ø-¨d¯l©lÐ-=¸QÐ?Ð?r#   N)rC   rD   rE   r
   r   r;   r@   r%   r#   r"   rz   rz     s   „ á‹h€Gòó@r#   rz   c                 ó   — t        | «      S )a¶  
    A validator that raises a `ValueError` if the initializer is called
    with a value that does not belong in the options provided.  The check is
    performed using ``value in options``.

    :param options: Allowed options.
    :type options: list, tuple, `enum.Enum`, ...

    :raises ValueError: With a human readable error message, the attribute (of
       type `attrs.Attribute`), the expected options, and the value it
       got.

    .. versionadded:: 17.1.0
    .. versionchanged:: 22.1.0
       The ValueError was incomplete until now and only contained the human
       readable error message. Now it contains all the information that has
       been promised since 17.1.0.
    )rz   r‚   s    r"   r   r   2  s   € ô& ˜Ó Ð r#   c                   ó   — e Zd Zd„ Zd„ Zy)Ú_IsCallableValidatorc                 ó„   — t        |«      s5d}t        |j                  |j                  ||j                  ¬«      |¬«      ‚y)r-   z?'{name}' must be callable (got {value!r} that is a {actual!r}).)r.   r1   r0   )r:   r1   N)Úcallabler   r3   r.   r4   )r7   r8   r9   r1   Úmessages        r"   r;   z_IsCallableValidator.__call__J  sN   € ô ˜Œð8ð ô #Ø—N‘NØŸ™¨%¸¿¹ð #ó ð ô	ð ð r#   c                  ó   — y)Nz<is_callable validator>r%   r?   s    r"   r@   z_IsCallableValidator.__repr__Z  s   € Ø(r#   N)rC   rD   rE   r;   r@   r%   r#   r"   r…   r…   H  s   „ òó )r#   r…   c                  ó   — t        «       S )ax  
    A validator that raises a `attrs.exceptions.NotCallableError` if the
    initializer is called with a value for this particular attribute
    that is not callable.

    .. versionadded:: 19.1.0

    :raises attrs.exceptions.NotCallableError: With a human readable error
        message containing the attribute (`attrs.Attribute`) name,
        and the value it got.
    )r…   r%   r#   r"   r   r   ^  s   € ô  Ó!Ð!r#   c                   ó^   — e Zd Z e e«       ¬«      Z ed e e«       «      ¬«      Zd„ Zd„ Z	y)Ú_DeepIterablerr   N©Údefaultrs   c                 óv   — | j                   �| j                  |||«       |D ]  }| j                  |||«       Œ y©r-   N©Úiterable_validatorÚmember_validator)r7   r8   r9   r1   Úmembers        r"   r;   z_DeepIterable.__call__t  sC   € ð ×"Ñ"Ð.Ø×#Ñ# D¨$°Ô6àò 	6ˆFØ×!Ñ! $¨¨fÕ5ñ	6r#   c                 ób   — | j                   €dnd| j                   ›�}d|› d| j                  ›d�S )NÚ ú z<deep_iterable validator forz iterables of r=   r‘   )r7   Úiterable_identifiers     r"   r@   z_DeepIterable.__repr__~  sP   € ð ×&Ñ&Ð.ñ à�T×,Ñ,Ð/Ð0ð 	ð +Ð+>Ð*?Ø˜T×2Ñ2Ð5°Qð8ð	
r#   )
rC   rD   rE   r
   r   r“   r   r’   r;   r@   r%   r#   r"   rŒ   rŒ   m  s0   „ á©«Ô6ÐÙØ¡©«Ó 7ôÐò6ó	
r#   rŒ   c                 óV   — t        | t        t        f«      rt        | Ž } t	        | |«      S )a4  
    A validator that performs deep validation of an iterable.

    :param member_validator: Validator(s) to apply to iterable members
    :param iterable_validator: Validator to apply to iterable itself
        (optional)

    .. versionadded:: 19.1.0

    :raises TypeError: if any sub-validators fail
    )r2   rw   rx   r	   rŒ   ©r“   r’   s     r"   r   r   Š  s.   € ô Ð"¤T¬5 MÔ2ÜÐ!1Ð2ÐÜÐ)Ð+=Ó>Ð>r#   c                   óz   — e Zd Z e e«       ¬«      Z e e«       ¬«      Z ed e e«       «      ¬«      Zd„ Z	d„ Z
y)Ú_DeepMappingrr   Nr�   c                 ó¢   — | j                   �| j                  |||«       |D ]+  }| j                  |||«       | j                  ||||   «       Œ- yr�   )Úmapping_validatorÚkey_validatorÚvalue_validator)r7   r8   r9   r1   Úkeys        r"   r;   z_DeepMapping.__call__¡  sY   € ð ×!Ñ!Ð-Ø×"Ñ" 4¨¨uÔ5àò 	9ˆCØ×Ñ˜t T¨3Ô/Ø× Ñ   t¨U°3©ZÕ8ñ	9r#   c                 óP   — dj                  | j                  | j                  ¬«      S )NzA<deep_mapping validator for objects mapping {key!r} to {value!r}>)r¡   r1   )r3   rŸ   r    r?   s    r"   r@   z_DeepMapping.__repr__¬  s%   € àOß
‰&�T×'Ñ'¨t×/CÑ/Cˆ&Ó
Dð	Er#   )rC   rD   rE   r
   r   rŸ   r    r   rž   r;   r@   r%   r#   r"   rœ   rœ   ›  s9   „ á¡[£]Ô3€MÙ¡{£}Ô5€OÙ t±xÁÃÓ7NÔOÐò	9óEr#   rœ   c                 ó   — t        | ||«      S )a}  
    A validator that performs deep validation of a dictionary.

    :param key_validator: Validator to apply to dictionary keys
    :param value_validator: Validator to apply to dictionary values
    :param mapping_validator: Validator to apply to top-level mapping
        attribute (optional)

    .. versionadded:: 19.1.0

    :raises TypeError: if any sub-validators fail
    )rœ   )rŸ   r    rž   s      r"   r   r   ²  s   € ô ˜ Ð8IÓJÐJr#   c                   óB   — e Zd Z e«       Z e«       Z e«       Zd„ Zd„ Zy)Ú_NumberValidatorc                 óª   — | j                  || j                  «      s7d|j                  › d| j                  › d| j                  › d|› �}t	        |«      ‚y)r-   r|   z
' must be r—   ú: N)Úcompare_funcÚboundr.   Ú
compare_oprN   r6   s        r"   r;   z_NumberValidator.__call__È  sR   € ð × Ñ  ¨¯
©
Ô3Ø�d—i‘i�[ 
¨4¯?©?Ð*;¸1¸T¿Z¹Z¸LÈÈ5È'ÐRˆCÜ˜S“/Ð!ð 4r#   c                 ó<   — d| j                   › d| j                  › d�S )Nz<Validator for x r—   r=   )rª   r©   r?   s    r"   r@   z_NumberValidator.__repr__Ð  s    € Ø" 4§?¡?Ð"3°1°T·Z±Z°LÀÐBÐBr#   N)	rC   rD   rE   r
   r©   rª   r¨   r;   r@   r%   r#   r"   r¥   r¥   Â  s"   „ á‹H€EÙ“€JÙ“8€Lò"óCr#   r¥   c                 ó8   — t        | dt        j                  «      S )zÇ
    A validator that raises `ValueError` if the initializer is called
    with a number larger or equal to *val*.

    :param val: Exclusive upper bound for values

    .. versionadded:: 21.3.0
    ú<)r¥   Úoperatorr   ©Úvals    r"   r   r   Ô  ó   € ô ˜C ¤h§k¡kÓ2Ð2r#   c                 ó8   — t        | dt        j                  «      S )zÁ
    A validator that raises `ValueError` if the initializer is called
    with a number greater than *val*.

    :param val: Inclusive upper bound for values

    .. versionadded:: 21.3.0
    z<=)r¥   r®   r   r¯   s    r"   r   r   à  ó   € ô ˜C ¤x§{¡{Ó3Ð3r#   c                 ó8   — t        | dt        j                  «      S )zÁ
    A validator that raises `ValueError` if the initializer is called
    with a number smaller than *val*.

    :param val: Inclusive lower bound for values

    .. versionadded:: 21.3.0
    z>=)r¥   r®   r   r¯   s    r"   r   r   ì  r³   r#   c                 ó8   — t        | dt        j                  «      S )zÈ
    A validator that raises `ValueError` if the initializer is called
    with a number smaller or equal to *val*.

    :param val: Exclusive lower bound for values

    .. versionadded:: 21.3.0
    r=   )r¥   r®   r   r¯   s    r"   r   r   ø  r±   r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_MaxLengthValidatorc                 óš   — t        |«      | j                  kD  r3d|j                  › d| j                  › dt        |«      › �}t        |«      ‚y)r-   úLength of 'z' must be <= r§   N)ÚlenÚ
max_lengthr.   rN   r6   s        r"   r;   z_MaxLengthValidator.__call__  óH   € ô ˆu‹:˜Ÿ™Ò'Ø §	¡	˜{¨-¸¿¹Ð7HÈÌ3ÈuË:È,ÐWˆCÜ˜S“/Ð!ð (r#   c                 ó"   — d| j                   › d�S )Nz<max_len validator for r=   )r»   r?   s    r"   r@   z_MaxLengthValidator.__repr__  ó   € Ø(¨¯©Ð(9¸Ð;Ð;r#   N)rC   rD   rE   r
   r»   r;   r@   r%   r#   r"   r·   r·     ó   „ á“€Jò"ó<r#   r·   c                 ó   — t        | «      S )zæ
    A validator that raises `ValueError` if the initializer is called
    with a string or iterable that is longer than *length*.

    :param int length: Maximum length of the string or iterable

    .. versionadded:: 21.3.0
    )r·   ©Úlengths    r"   r   r     ó   € ô ˜vÓ&Ð&r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_MinLengthValidatorc                 óš   — t        |«      | j                  k  r3d|j                  › d| j                  › dt        |«      › �}t        |«      ‚y)r-   r¹   z' must be >= r§   N)rº   Ú
min_lengthr.   rN   r6   s        r"   r;   z_MinLengthValidator.__call__$  r¼   r#   c                 ó"   — d| j                   › d�S )Nz<min_len validator for r=   )rÇ   r?   s    r"   r@   z_MinLengthValidator.__repr__,  r¾   r#   N)rC   rD   rE   r
   rÇ   r;   r@   r%   r#   r"   rÅ   rÅ      r¿   r#   rÅ   c                 ó   — t        | «      S )zç
    A validator that raises `ValueError` if the initializer is called
    with a string or iterable that is shorter than *length*.

    :param int length: Minimum length of the string or iterable

    .. versionadded:: 22.1.0
    )rÅ   rÁ   s    r"   r   r   0  rÃ   r#   c                   ó&   — e Zd Z e«       Zd„ Zd„ Zy)Ú_SubclassOfValidatorc                 ó    — t        || j                  «      s8d|j                  › d| j                  ›d|›d�}t        ||| j                  |«      ‚y)r-   r|   z' must be a subclass of r}   z).N)Ú
issubclassr/   r.   r5   r6   s        r"   r;   z_SubclassOfValidator.__call__@  sX   € ô ˜% §¡Ô+Ø�d—i‘i�[Ð 8¸¿¹¸ÀVÈEÈ9ÐTVÐWˆCÜØØØ—	‘	Øó	ð ð ,r#   c                 ó"   — d| j                   ›d�S )Nz <subclass_of validator for type r=   r>   r?   s    r"   r@   z_SubclassOfValidator.__repr__M  rA   r#   NrB   r%   r#   r"   rË   rË   <  s   „ á‹8€DòóAr#   rË   c                 ó   — t        | «      S )aÓ  
    A validator that raises a `TypeError` if the initializer is called
    with a wrong type for this particular attribute (checks are performed using
    `issubclass` therefore it's also valid to pass a tuple of types).

    :param type: The type to check for.
    :type type: type or tuple of types

    :raises TypeError: With a human readable error message, the attribute
        (of type `attrs.Attribute`), the expected type, and the value it
        got.
    )rË   r>   s    r"   Ú_subclass_ofrÐ   Q  rG   r#   c                   ó~   — e Zd Z e«       Z e ed«      ¬«      Z e e ee	«       e
e«      ¬«      ¬«      Zd„ Zd„ Zy)Ú_NotValidatorzCnot_ validator child '{validator!r}' did not raise a captured error)Ú	converterrš   rr   c                 óø   — 	 | j                  |||«       t        | j                  j                  | j                   | j                  ¬«      || j                   || j                  «      ‚# | j                  $ r Y y w xY w)N)rs   Ú	exc_types)rs   rN   r:   r3   rÕ   rt   s       r"   r;   z_NotValidator.__call__q  sw   € ð	Ø�N‰N˜4  uÔ-ô Ø—‘—‘Ø"Ÿn™nØ"Ÿn™nð  ó ð Ø—‘ØØ—‘ó	ð 	øð �~‰~ò 	Ùð	ús   ‚A' Á'A9Á8A9c                 óP   — dj                  | j                  | j                  ¬«      S )Nz;<not_ validator wrapping {what!r}, capturing {exc_types!r}>)ÚwhatrÕ   )r3   rs   rÕ   r?   s    r"   r@   z_NotValidator.__repr__‚  s'   € àIß
‰&Ø—‘Ø—n‘nð ó 
ð	
r#   N)rC   rD   rE   r
   rs   r   r:   r   rÐ   Ú	Exceptionr   rx   rÕ   r;   r@   r%   r#   r"   rÒ   rÒ   a  sN   „ á“€IÙ
Ù!ð-ó
ô€Cñ ÙÙ)¨)Ó4Ù*¨5Ó1ô
ô€Iòó"
r#   rÒ   )r:   rÕ   c                óX   — 	 t        |«      }t        | ||«      S # t        $ r |f}Y Œw xY w)a  
    A validator that wraps and logically 'inverts' the validator passed to it.
    It will raise a `ValueError` if the provided validator *doesn't* raise a
    `ValueError` or `TypeError` (by default), and will suppress the exception
    if the provided validator *does*.

    Intended to be used with existing validators to compose logic without
    needing to create inverted variants, for example, ``not_(in_(...))``.

    :param validator: A validator to be logically inverted.
    :param msg: Message to raise if validator fails.
        Formatted with keys ``exc_types`` and ``validator``.
    :type msg: str
    :param exc_types: Exception type(s) to capture.
        Other types raised by child validators will not be intercepted and
        pass through.

    :raises ValueError: With a human readable error message,
        the attribute (of type `attrs.Attribute`),
        the validator that failed to raise an exception,
        the value it got,
        and the expected exception types.

    .. versionadded:: 22.2.0
    )rx   r5   rÒ   )rs   r:   rÕ   s      r"   r   r   ‹  s:   € ð4!Ü˜)Ó$ˆ	ô ˜ C¨Ó3Ð3øô ò !Ø�LŠ	ð!ús   ‚ š)¨))r   Nrq   )5Ú__doc__r®   rV   Ú
contextlibr   r   Ú_configr   r   Ú_maker   r	   r
   r   Ú
convertersr   Ú
exceptionsr   Ú__all__r   r   r   r+   r   rJ   r   rc   r   ro   r   rz   r   r…   r   rŒ   r   rœ   r   r¥   r   r   r   r   r·   r   rÅ   r   rË   rÐ   rÒ   rN   r5   r   r%   r#   r"   ú<module>rá      s}  ðñó
 Û 	å %Ý ç ;ß 5Ó 5Ý 'Ý (ò€ò.%ò$	$ð ñ!ó ð!ñ" ˆE˜ DÔ)÷Að Aó *ðAò2&ñ  ˆE˜$ dÔ+÷Fð Fó ,ðFó.(4ñV ˆE˜ DÔ)÷Hð Hó *ðHò,)ñ6 ˆE˜ DÔ)÷
Fð 
Fó *ð
Fò)ñ& ˆE˜ DÔ)÷@ð @ó *ð@ò,!ñ, ˆE˜ TÔ*÷)ð )ó +ð)ò*"ñ ˆE˜ DÔ)÷
ð 
ó *ð
ó8?ñ" ˆE˜ DÔ)÷Eð Eó *ðEó,Kñ  ˆE˜$ dÔ+÷Cð Có ,ðCò"	3ò	4ò	4ò	3ñ ˆE˜$ dÔ+÷<ð <ó ,ð<ò	'ñ ˆE˜$ dÔ+÷<ð <ó ,ð<ò	'ñ ˆE˜ DÔ)÷Að Aó *ðAò(&ñ  ˆE˜ DÔ)÷&
ð &
ó *ð&
ðR  ¨J¸	Ð+Bõ 4r#   