+
    SBi                        ^ RI Ht ^ RIHt ^ RIt^RIHt  ! R R4      tR R lt	 ! R	 R
]
]4      t ! R R]]4      t ! R R]]4      tR F  t]	! ]]R4       K  	   ! R R]]4      tR F  t]	! ]]R4       K  	   ! R R]P&                  P(                  ]4      t]! R4      tR R lt]
]]]]]]]/tR R ltR R lt]! 4       t]! 4       tR# )    )wraps)TypeVarN)SetuptoolsDeprecationWarningc                   4   a  ] tR t^	t o RtRtV 3R ltRtV tR# )Statica8  
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.
Fc                &   < V ^8  d   Qh/ S[ ;R&   # )   	_mutated_)bool)format__classdict__s   "7/usr/lib/python3.14/site-packages/setuptools/_static.py__annotate__Static.__annotate__	   s            N)	__name__
__module____qualname____firstlineno____doc__r
   __annotate_func____static_attributes____classdictcell__)r   s   @r   r   r   	   s      I  r   r   c                @    V ^8  d   QhR\         R\        R\        RR/# )r	   targetmethodcopyingreturnN)typestr)r   s   "r   r   r      s(     * *$ * *c *d *r   c                   aa \        WR4      oSf   R# \        S4      R VV3R ll4       pRVn        \        WV4       R# )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.
Nc                $    V ^8  d   QhR\         /# )r	   self)r   )r   s   "r   r   +_prevent_modification.<locals>.__annotate__(   s     ) )6 )r   c                 d   < R V n         \        P                  ! RRS R2RR7       S! V .VO5/ VB # )Tz/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/).
            )due_date)i  
   r(   )r
   r   emit)r$   argskwargsr   fns   &*,r   _replacement+_prevent_modification.<locals>._replacement'   sS     $))=O PWi X $
	
 $((((r    )getattrr   r   setattr)r   r   r   r-   r,   s   &&f @r   _prevent_modificationr2      sH     
	&B	z
2Y) ) )" LFL)r   c                       ] tR t^=tRtR# )Strr   Nr   r   r   r   r   r   r   r   r4   r4   =       r   r4   c                       ] tR t^AtRtR# )Tupler   Nr5   r   r   r   r8   r8   A   r6   r   r8   c                       ] tR t^EtRtRtR# )Lista[  
: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   r:   r:   E   s    r   r:   z`list(value)`c                       ] tR t^ltRtRtR# )Dicta{  
: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   Nr;   r   r   r   r=   r=   l   s    r   r=   z`dict(value)`c                       ] tR t^tRtRtR# )SpecifierSetz>Not exactly a built-in type but useful for ``requires-python``r   Nr;   r   r   r   r?   r?      s    Hr   r?   Tc                0    V ^8  d   QhR\         R\         /# r	   valuer   r@   )r   s   "r   r   r      s       a r   c                    V # )z
>>> noop(42)
42
r   rC   s   &r   nooprG      s	    
 Lr   c                0    V ^8  d   QhR\         R\         /# rB   rD   )r   s   "r   r   r      s     6 6a 6A 6r   c                T    \         P                  \        V 4      \        4      ! V 4      # )zO
>>> is_static(attempt_conversion("hello"))
True
>>> is_static(object())
False
)_CONVERSIONSgetr    rG   rF   s   &r   attempt_conversionrL      s      DK.u55r   c                0    V ^8  d   QhR\         R\        /# rB   )objectr   )r   s   "r   r   r      s     = =V = =r   c                T    \        V \        4      ;'       d    V P                  '       * # )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
   rF   s   &r   	is_staticrQ      s      eV$<<U__)<<r   )
__delitem____iadd____setitem__appendclearextendinsertremovereversepop)rR   __ior__rT   rV   r[   popitem
setdefaultupdate)	functoolsr   typingr   packaging.specifiers	packagingwarningsr   r   r2   r!   r4   tupler8   listr:   _methoddictr=   
specifiersr?   r@   rG   rJ   rL   rQ   
EMPTY_LIST
EMPTY_DICTr   r   r   <module>rl      s       2 $*D	#v 		E6 	4 0G $94 0	G $9	I9''44f I CL S%dD$?6= V
V
r   