
    i)              	         % S r SSKJr  SSKJr  SSKrSSKrSSKrSSKJr  SSKJ	r	  SSK
r
SSKJr  SSKrSSKJr  SS	KJr  SS
KJr  SSKr\R&                  S:  a  SSKJr  \R,                  R.                  rS/S jr " S S\R4                  5      r\R8                  rS\S'   S0S jrS0S jr S1S jr!S2S3S jjr"S4S jr#SSS.       S5S jjr$S6S jr%\&" S5       V s0 s H  o \&" SS5      ;  d  M  U SU S 3_M     sn r'\'RQ                  \)" S 5      S!\)" S"5      S#\)" S$5      S%05        S7S& jr*S' r+S( r,S8S) jr-S9S* jr.S:S+ jr/S;S, jr0 " S- S.5      r1gs  sn f )<z"Python version compatibility code.    )annotations)CallableN)	Parameter)	Signature)Path)Any)Final)NoReturn      )Formatc                    [        U 5      $ )zBInternal wrapper to prepare lazy proxies for legacy_path instances)LEGACY_PATH)paths    M/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/_pytest/compat.pylegacy_pathr   #   s    t    c                      \ rS rSrSrSrg)
NotSetType+   r    N)__name__
__module____qualname____firstlineno__token__static_attributes__r   r   r   r   r   +   s    Er   r   r	   NOTSETc                V    [         R                  " U 5      =(       d    [        U SS5      $ )ab  Return True if func is a coroutine function (a function defined with async
def syntax, and doesn't contain yield), or a function decorated with
@asyncio.coroutine.

Note: copied and modified from Python 3.5's builtin coroutines.py to avoid
importing asyncio directly, which in turns also initializes the "logging"
module as a side-effect (see issue #8).
_is_coroutineF)inspectiscoroutinefunctiongetattrfuncs    r   r#   r#   1   s#     &&t,Uou0UUr   c                R    [        U 5      =(       d    [        R                  " U 5      $ )zVReturn True if the given function seems to be an async function or
an async generator.)r#   r"   isasyncgenfunctionr%   s    r   is_async_functionr)   =   s     t$H(B(B4(HHr   c                    [         R                  S:  a#  [        R                  " U [        R
                  S9$ [        R                  " U 5      $ )z0Return signature without evaluating annotations.r   )annotation_format)sysversion_infor"   	signaturer   STRINGobjs    r   r.   r.   C   s8    
7"  FFS!!r   c                    [        U 5      n [        [        R                  " U 5      5      nU R                  R
                  nUb   UR                  U5      nU SUS-    3$ U SUS-    3$ ! [         a     Nf = f)N:   )get_real_funcr   r"   getfile__code__co_firstlinenorelative_to
ValueError)functioncurdirfnlinenorelfns        r   getlocationr@   J   s    X&H	gooh'	(B--F	+NN6*E WAfqj\**T6A:,	  		s   A* *
A76A7c                   [        U SS5      nU(       d  g[        [        R                  R                  S5      S[	        5       5      n[        [        R                  R                  S5      S[	        5       5      n[        U Vs/ s H8  nUR                  (       a  M  UR                  UL d  UR                  UL d  M6  UPM:     sn5      $ s  snf )z>Return number of arguments used up by mock arguments (if any).	patchingsNr   mockDEFAULTzunittest.mock)r$   r,   modulesgetobjectlenattribute_namenew)r;   rB   mock_sentinelut_mock_sentinelps        r   num_mock_patch_argsrN   X   s    +t4ICKKOOF3YIMs{{?FHU 	
##  -'1554D+D 	
 	
s   C	C	<C	 )nameclsc                   [        U 5      R                  R                  5       n[        S W 5       5      nU(       d  U R                  n[        S	 U 5       5      (       d4  U(       a-  [        [        R                  " X!SS
9[        5      (       d  USS n[        U S5      (       a  U[        U 5      S nU$ ! [        [        4 a  nSSKJn  U" SU < SU 3SS9   SnANSnAff = f)a  Return the names of a function's mandatory arguments.

Should return the names of all function arguments that:
* Aren't bound to an instance or type as in instance or class methods.
* Don't have default values.
* Aren't bound with functools.partial.
* Aren't replaced with mocks.

The cls arguments indicate that the function should be treated as a bound
method even though it's not unless the function is a static method.

The name parameter should be the original name in which the function was collected.
r   )failz!Could not determine arguments of z: F)pytraceNc              3     #    U  Hl  nUR                   [        R                  L d  UR                   [        R                  L d  M?  UR                  [        R
                  L d  M^  UR                  v   Mn     g 7fNkindr   POSITIONAL_OR_KEYWORDKEYWORD_ONLYdefaultemptyrP   .0rM   s     r   	<genexpr>"getfuncargnames.<locals>.<genexpr>   sX      AFFi555vv///	 	 II( 	s   >A6A6#A6c              3  X   #    U  H   oR                   [        R                  L v   M"     g 7frV   )rX   r   POSITIONAL_ONLYr]   s     r   r_   r`      s     GJqvv222Js   (*)r[   r4   __wrapped__)r.   
parametersvaluesr:   	TypeError_pytest.outcomesrS   tupler   any
isinstancer"   getattr_staticstaticmethodhasattrrN   )r;   rP   rQ   rd   erS   	arg_namess          r   getfuncargnamesrp   k   s    8
x(33::<
   I   
 GJGGG 	""3d;\
 
 abM	x''1(;=>	G 	" 
)/|2aSA	

s   #B6 6C$CC$c                h    [        S [        U 5      R                  R                  5        5       5      $ )Nc              3     #    U  H`  nUR                   [        R                  [        R                  4;   d  M3  UR                  [        R
                  Ld  MR  UR                  v   Mb     g 7frV   rW   r]   s     r   r_   (get_default_arg_names.<locals>.<genexpr>   sQ      8A66i55y7M7MNN 	 IIY__, 	8s   2A*A*A*)rh   r.   rd   re   )r;   s    r   get_default_arg_namesrt      s2      8$//668  r             z\x02x	z\tz\r
z\nc                    [        U [        5      (       a  U R                  SS5      nO U R                  S5      R                  S5      nUR	                  [
        5      $ )a  If val is pure ASCII, return it as an str, otherwise, escape
bytes objects into a sequence of escaped bytes:

b'\xc3\xb4\xc5\xd6' -> r'\xc3\xb4\xc5\xd6'

and escapes strings into a sequence of escaped unicode ids, e.g.:

r'4\nV\U00043efa\x0eMXWB\x1e\u3028\u15fd\xcd\U0007d944'

Note:
   The obvious "v.decode('unicode-escape')" will return
   valid UTF-8 unicode if it finds them in bytes, but we
   want to return escaped bytes for any byte, even if they match
   a UTF-8 string.
asciibackslashreplaceunicode_escape)rj   bytesdecodeencode	translate$_non_printable_ascii_translate_table)valrets     r   ascii_escapedr      sL      #ujj"45jj)*11':===>>r   c                    [         R                  " U 5      n [        U [        R                  5      (       a  U R
                  n U $ )zwGet the real function object of the (possibly) wrapped object by
:func:`functools.wraps`, or :func:`functools.partial`.)r"   unwraprj   	functoolspartialr&   r0   s    r   r5   r5      s3     ..
C#y(())hhJr   c                @     U R                   $ ! [         a    U s $ f = frV   )__func__AttributeErrorr%   s    r   	getimfuncr      s%    }} s    c                D    SSK Jn   [        XU5      $ ! U a    Us $ f = f)a:  Like getattr but return default upon any Exception or any OutcomeException.

Attribute access can potentially fail for 'evil' Python objects.
See issue #214.
It catches OutcomeException because of #2490 (issue #580), new outcomes
are derived from BaseException instead of Exception (for more details
check #2707).
r   )TEST_OUTCOME)rg   r   r$   )rG   rP   r[   r   s       r   safe_getattrr      s-     .vW-- s    c                P     [         R                  " U 5      $ ! [         a     gf = f)z0Ignore any exception via isinstance on Python 3.F)r"   isclass	Exceptionr0   s    r   safe_isclassr      s(    s## s    
%%c                     [         R                  S:X  d  [         R                  S:X  a  gSn [        R                  " 5       nX:w  a  U$ S$ )zReturn the current process's real user id or None if it could not be
determined.

:return: The user id or None if it could not be determined.
win32
emscriptenN)r,   platformosgetuid)ERRORuids     r   get_user_idr     sA     ||w#,,,">  iikls,,r   c                D     SU  S[        U 5      R                   S35       e)NzUnhandled value: z ())typer   )values    r   assert_neverr   8  s'    F%eWBtE{/C/C.DAFF5r   c                  6    \ rS rSrSrSS jrS	S jrS	S jrSrg)
CallableBooli<  a  
A bool-like object that can also be called, returning its true/false value.

Used for backwards compatibility in cases where something was supposed to be a method
but was implemented as a simple attribute by mistake (see `TerminalReporter.isatty`).

Do not use in new code.
c                    Xl         g rV   _value)selfr   s     r   __init__CallableBool.__init__F  s    r   c                    U R                   $ rV   r   r   s    r   __bool__CallableBool.__bool__I      {{r   c                    U R                   $ rV   r   r   s    r   __call__CallableBool.__call__L  r   r   r   N)r   boolreturnNone)r   r   )	r   r   r   r   __doc__r   r   r   r   r   r   r   r   r   <  s    r   r   )r   zstr | os.PathLike[str]r   r   )r&   rG   r   r   )r1   Callable[..., Any]r   r   rV   )r<   zstr | os.PathLike[str] | Noner   str)r   int)r;   zCallable[..., object]rP   r   rQ   ztype | Noner   tuple[str, ...])r;   r   r   r   )r   zbytes | strr   r   )rG   r   rP   r   r[   r   r   r   )r1   rG   r   r   )r   z
int | None)r   r
   r   r
   )2r   
__future__r   collections.abcr   enumr   r"   r   r   r   pathlibr   r,   typingr   r	   r
   pyr-   annotationlibr   r   localr   r   Enumr   r   r   __annotations__r#   r)   r.   r@   rN   rp   rt   ranger   updateordr   r5   r   r   r   r   r   r   )is   0r   <module>r      sn   ( " $      	  
    	 w$ ggnn     	VI" , 	A#A A 
	A
 AH	 $Cj((U2s^,CAQsG}j( $ % + +Ys4y%TE:
?."-hG C(s   E2E