ó
    Eñi÷  ã                   óÀ  • S SK Jr  S SKJr  S SKrSSKJr   " S S5      rS\	S	\
S
\
SS4S jr " S S\
\5      r " S S\\5      r " S S\\5      rS H  r\" \\S5        M      " S S\\5      rS H  r\" \\S5        M      " S S\R(                  R*                  \5      r\" S5      rS\S\4S jr\
\\\\\\\0rS\S\4S jrS\S\4S jr\" 5       r\" 5       rg) é    )Úwraps)ÚTypeVarNé   )ÚSetuptoolsDeprecationWarningc                   ó(   • \ rS rSr% SrSr\\S'   Srg)ÚStaticé	   a8  
Wrapper for built-in object types that are allow setuptools to identify
static core metadata (in opposition to ``Dynamic``, as defined :pep:`643`).

The trick is to mark values with :class:`Static` when they come from
``pyproject.toml`` or ``setup.cfg``, so if any plugin overwrite the value
with a built-in, setuptools will be able to recognise the change.

We inherit from built-in classes, so that we don't need to change the existing
code base to deal with the new types.
We also should strive for immutability objects to avoid changes after the
initial parsing.
FÚ	_mutated_© N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r
   ÚboolÚ__annotations__Ú__static_attributes__r   ó    ÚO/home/mande/repo/quber/.venv/lib/python3.13/site-packages/setuptools/_static.pyr   r   	   s   ‡ ñð €IˆtÖr   r   ÚtargetÚmethodÚcopyingÚreturnc                 óˆ   ^^• [        XS5      mTc  g[        T5      S[        4UU4S jj5       nSUl        [	        XU5        g)zñ
Because setuptools is very flexible we cannot fully prevent
plugins and user customizations from modifying static values that were
parsed from config files.
But we can attempt to block "in-place" mutations and identify when they
were done.
NÚselfc                 ó^   >• SU l         [        R                  " SST S3SS9  T" U /UQ70 UD6$ )NTz/Direct modification of value will be disallowedzæ
            In an effort to implement PEP 643, direct/in-place changes of static values
            that come from configuration files are deprecated.
            If you need to modify this value, please first create a copy with z¸
            and make sure conform to all relevant standards when overriding setuptools
            functionality (https://packaging.python.org/en/latest/specifications/).
            )ié  é
   r   )Údue_date)r
   r   Úemit)r   ÚargsÚkwargsr   Úfns      €€r   Ú_replacementÚ+_prevent_modification.<locals>._replacement'   sS   ø€ ð ˆŒÜ$×)Ò)Ø=ðOð PWÈið Xðð $ò
	
ñ �$Ð(˜Ò( Ñ(Ð(r   Ú )Úgetattrr   r   r   Úsetattr)r   r   r   r#   r"   s     ` @r   Ú_prevent_modificationr(      sJ   ù€ ô 
� Ó	&€BØ	�zØä
ˆ2ƒYð)œ6÷ )ó ð)ð" €LÔÜˆF˜LÕ)r   c                   ó   • \ rS rSrSrg)ÚStré=   r   N©r   r   r   r   r   r   r   r   r*   r*   =   ó   † Úr   r*   c                   ó   • \ rS rSrSrg)ÚTupleéA   r   Nr,   r   r   r   r/   r/   A   r-   r   r/   c                   ó   • \ rS rSrSrSrg)ÚListéE   a[  
:meta private:
>>> x = List([1, 2, 3])
>>> is_static(x)
True
>>> x += [0]  # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
SetuptoolsDeprecationWarning: Direct modification ...
>>> is_static(x)  # no longer static after modification
False
>>> y = list(x)
>>> y.clear()
>>> y
[]
>>> y == x
False
>>> is_static(List(y))
True
r   N©r   r   r   r   r   r   r   r   r   r2   r2   E   s   † ôr   r2   )
Ú__delitem__Ú__iadd__Ú__setitem__ÚappendÚclearÚextendÚinsertÚremoveÚreverseÚpopz`list(value)`c                   ó   • \ rS rSrSrSrg)ÚDictél   a{  
:meta private:
>>> x = Dict({'a': 1, 'b': 2})
>>> is_static(x)
True
>>> x['c'] = 0  # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
SetuptoolsDeprecationWarning: Direct modification ...
>>> x._mutated_
True
>>> is_static(x)  # no longer static after modification
False
>>> y = dict(x)
>>> y.popitem()
('b', 2)
>>> y == x
False
>>> is_static(Dict(y))
True
r   Nr4   r   r   r   r@   r@   l   s   † ôr   r@   )r5   Ú__ior__r7   r9   r>   ÚpopitemÚ
setdefaultÚupdatez`dict(value)`c                   ó   • \ rS rSrSrSrg)ÚSpecifierSeté‘   z>Not exactly a built-in type but useful for ``requires-python``r   Nr4   r   r   r   rG   rG   ‘   s   † ÜHr   rG   ÚTÚvaluec                 ó   • U $ )z
>>> noop(42)
42
r   ©rJ   s    r   ÚnooprM   ˜   s	   € ð
 €Lr   c                 óT   • [         R                  [        U 5      [        5      " U 5      $ )zO
>>> is_static(attempt_conversion("hello"))
True
>>> is_static(object())
False
)Ú_CONVERSIONSÚgetÚtyperM   rL   s    r   Úattempt_conversionrR   £   s    € ô ×ÑœD ›K¬Ô.¨uÓ5Ð5r   c                 óR   • [        U [        5      =(       a    U R                  (       + $ )zŒ
>>> is_static(a := Dict({'a': 1}))
True
>>> is_static(dict(a))
False
>>> is_static(b := List([1, 2, 3]))
True
>>> is_static(list(b))
False
)Ú
isinstancer   r
   rL   s    r   Ú	is_staticrU   ­   s   € ô �eœVÓ$×<¨U¯_©_Ô)<Ð<r   )Ú	functoolsr   Útypingr   Úpackaging.specifiersÚ	packagingÚwarningsr   r   rQ   Ústrr(   r*   Útupler/   Úlistr2   Ú_methodÚdictr@   Ú
specifiersrG   rI   rM   rO   rR   Úobjectr   rU   Ú
EMPTY_LISTÚ
EMPTY_DICTr   r   r   Ú<module>rd      s1  ðÝ Ý ã å 2÷ñ ð$* $ð *°ð *¸cð *Àdô *ôD	ˆ#ˆvô 	ô	ˆE�6ô 	ôˆ4�ô ó0€Gñ ˜$ ¨Ö9ñôˆ4�ô ó0	€Gñ ˜$ ¨Ö9ñ	ôI�9×'Ñ'×4Ñ4°fô Iñ ˆCƒL€ð�ð �aô ð �S˜% ¨¨d°D¸$Ð?€ð6˜að 6 Aô 6ð=�Vð = ô =ñ ‹V€
Ù‹V�
r   