+
     h%  c                   s    ^ RI t ^ RI HtHtHtHtHtHt ^ RIHtH	t	H
t
HtHtHtHt ^RIHtHt ^RIHt ^RIHt ^RIHt ^RIHt ^R	IHt ^R
IHt ^RIHtH t  R R lt! ! R R]4      t"R R lt#R R lt$R R lt%R# )    N)cleandocgetdocgetfileisclassismodule	signature)Any
CollectionIterableOptionalTupleTypeUnion)GroupRenderableType)escape_control_codes)ReprHighlighter)JupyterMixinPanel)Pretty)Table)TextTextTypec                s0    V ^8  d   QhR\         R\         /# )   docreturn)strformat   ">/usr/lib/python3.14/site-packages/pip/_vendor/rich/_inspect.py__annotate__r!      s      # #     c                s0    V P                  R4      w  p pV# )z)Get the first paragraph from a docstring.z

)Z	partition)r   Z	paragraph_s   &  r    _first_paragraphr$      s    mmF+OIq!r"   c                   s   a  ] tR t^t o RtRRRRRRRRR	RR
RRRRRRR/	V 3R lR lltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR lt	V 3R lR lt
RtV tR# )InspectaY  A renderable to inspect any Python Object.

Args:
    obj (Any): An object to inspect.
    title (str, optional): Title to display over inspect result, or None use type. Defaults to None.
    help (bool, optional): Show full help text rather than just first paragraph. Defaults to False.
    methods (bool, optional): Enable inspection of callables. Defaults to False.
    docs (bool, optional): Also render doc strings. Defaults to True.
    private (bool, optional): Show private attributes (beginning with underscore). Defaults to False.
    dunder (bool, optional): Show attributes starting with double underscore. Defaults to False.
    sort (bool, optional): Sort attributes alphabetically. Defaults to True.
    all (bool, optional): Show all attributes. Defaults to False.
    value (bool, optional): Pretty print value of object. Defaults to True.
titleNhelpFmethodsdocsTprivatedundersortallvaluec                sj   < V ^8  d   QhRS[ RS[S[,          RS[RS[RS[RS[RS[RS[R	S[R
S[RR/# )r   objr&   r'   r(   r)   r*   r+   r,   r-   r.   r   N)r   r
   r   boolr   __classdict__   "r    r!   Inspect.__annotate__%   s~       !	
         
r"   c       	        s
   \        4       V n        Wn        T;'       g    V P                  V4      V n        V	'       d   R ;p;rgW0n        W@n        T;'       g    TV n        T;'       g    TV n        Wpn	        Wn
        Wn        R# )TN)r   highlighterr/   _make_titler&   r'   r(   r)   r*   r+   r,   r.   )selfr/   r&   r'   r(   r)   r*   r+   r,   r-   r.   s   &&$$$$$$$$$r    __init__ZInspect.__init__%   ss     +,33d..s3
)--G-g	LLD	((&	
r"   c                s&   < V ^8  d   QhRS[ RS[/# r   r/   r   )r   r   r1   r3   r    r!   r4   @   s      s t r"   c                s    \        V4      '       g#   \        V4      '       g   \        V4      '       d   \        V4      M\        \	        V4      4      pV P                  V4      pV# )zMake a default title.)r   callabler   r   typer5   )r7   r/   Z	title_strZ
title_texts   &&  r    r6   ZInspect._make_title@   sN     # HT#Y 	
 %%i0
r"   c                s    < V ^8  d   QhRS[ /# r   r   r   r1   r3   r    r!   r4   J   s     
 
% 
r"   c                st    \         P                  ! \        V P                  4       !  V P                  R RR7      # )zscope.border)r&   border_stylepaddingr    i   )r   Zfitr   _renderr&   )r7      &r    __rich__ZInspect.__rich__J   s.    yy4<<>"**'	
 	
r"   c                s<   < V ^8  d   QhRS[ RS[RS[S[,          /# )r   namer/   r   )r   r   r
   r   r1   r3   r    r!   r4   R   s&     % %3 %S %Xd^ %r"   c                sN    \        \        V4      4      R,           pRp \	        T4      p\        TRR7      pT'       d   TP                  RT 24       T P                  T4      pT;'       g    \        TRT4      p\        P                  ! T4      '       d   RpM!\        P                  ! T4      '       d   R	pMR
p\        P                  ! T R2RTP                  RR4       23TR3T4      p	T	#   \         d    Rp L\         d     R# i ; i  \
        \        3 d     Li ; i)zGet a signature for a callable.Z:z(...)Nzinspect.callableZstylezlink file://__qualname__Zclassz	async defZdef zinspect.r#   )r   r   Z
ValueErrorZ	TypeErrorr   ZOSErrorr   stylizer5   getattrinspectr   ZiscoroutinefunctionassembleZreplace)
r7   rC   r/   Z
_signatureZsource_filenameZcallable_nameZsignature_textZqualnameZprefixZqual_signatures
   &&&       r    _get_signatureZInspect._get_signatureR   s+   	Ys^,s2J *.	%clO
 T);<!!L0A"BC))*5==73= ??3F((-- FFxq\XfnnS#&>%?@A)*
 C  	! J 		 # 		s.   C0 D 0D?DDDD$#D$c                s0   < V ^8  d   QhRS[ S[,          /# r<   )r	   r   r1   r3   r    r!   r4   y   s     [ [.1 [r"   c           	   #  s|  a"   R R lpR V3R llpV P                   o\        S4      p\        V4      pV P                  '       g*   V Uu. uF  qUP	                  R4      '       d   K  VNK  	  ppV P
                  '       g*   V Uu. uF  qUP	                  R4      '       d   K  VNK  	  ppV\        V4      ,
          pV Uu. uF  qUV! V4      3NK  	  ppV P                  '       d   VP                  VR7       \        P                  ! RRR	7      pVP                  R
R7       VP                  p	V P                  p
\        S4      '       d   V P                  RS4      pVe	   Vx  Rx  V P                  '       d3   V P                  S4      pVe   \!        VRR7      pV
! V4      pVx  Rx  V P"                  '       dT   \%        S4      '       gC   \        S4      '       g2   \'        S4      '       g!   \)        \+        SR^
^<R7      RR7      x  Rx  V EFS  w  pw  r\         P,                  ! TVP	                  R4      '       d   RMR3R4      pVe<   VP/                  4       pVP1                  R4       V	! VV
! \3        V4      4      4       Kz  \        V4      '       d   V P4                  '       g   K  V P                  W_4      pVf   V	! V\+        WR7      4       K  V P                  '       dZ   V P                  V4      pVeE   TP7                  RV9   d   RMR4       V
! V4      pVP1                  R4       VP7                  V4       V	! VV4       EK@  V	! V\+        WR7      4       EKV  	  VP8                  '       d   Vx  R# V'       d   \         P:                  ! RV R24      x  R# R# u upi u upi u upi 5i)zRender object.c                st    V ^8  d   QhR\         \        \        3,          R\         \        \        3,          /# )r   itemr   )r   r   r   r0   r   r   r    r!   %Inspect._render.<locals>.__annotate__|   s+     	= 	=U38_ 	=tSy1A 	=r"   c                 sd    V w  pw  r#\        V4      VP                  R 4      P                  4       3# )r#   )r:   stripZlower)rL   keyZ_errorr.   s   &   r    
sort_itemsZ#Inspect._render.<locals>.sort_items|   s.    #' C&UOSYYs^%9%9%;<<r"   c                sR    V ^8  d   QhR\         R\        \        \        3,          /# )r   	attr_namer   )r   r   r   r   r   r    r!   rM      s"     	% 	%C 	%E#s(O 	%r"   c                sZ   <  R\        SV 4      3#   \         d   pTR3u Rp?# Rp?ii ; i)zGet attribute or any exception.N)rH   Z	Exception)rQ   errorr/   s   & r    safe_getattrZ%Inspect._render.<locals>.safe_getattr   s4    %gc9566 %t}$%s    *%**Z__r#   )rO   F)r>   ZexpandZright)Zjustify Nzinspect.helprD   T)Zindent_guidesZ
max_lengthZ
max_stringzinspect.value.border)r=   zinspect.attr.dunderzinspect.attrzinspect.error)r5   Z
rF   zinspect.docz[b cyan]za[/][i] attribute(s) not shown.[/i] Run [b][magenta]inspect[/]([not b]inspect[/])[/b] for options.r?   )z =zinspect.equals)r/   ZdirZlenr+   Z
startswithr*   r,   r   ZgridZ
add_columnadd_rowr5   r:   rK   r)   _get_formatted_docr   r.   r   r   r   r   rJ   ZcopyrG   Zreprr(   ZappendZ	row_countZfrom_markup)r7   rP   rS   ZkeysZtotal_itemsrO   Znot_shown_countZitemsZitems_tablerU   r5   r   Z_docZdoc_textrR   r.   Zkey_textZwarningZ_signature_textr)   r   r/   s   &                    @r    r@   ZInspect._rendery   s    	=	% 	% hh3x$i{{{#'D4C~~d/CCC4DD|||#'C4C~~c/BCC4DC%D	159:Tc|C()T:999JJ:J&jj>w/%%&&C==++B4I$999**3/DN;&x0:::ws||x}}s$2"M3  H#(C%}}-0^^D-A-A)~ )H  "--/0T%[!9:|||"&"5"5c"A"*HfU&LMyyy#66u=++2244<4SQ"-d"3CKK6+2237Ho6&"HIA $)B    ""?+ ,Q R  K EC:sd   AN<N-(N-.N<N<N2#N2)N<N7B(N<<AN< C1N<2=N<0BN<?N</N<c                s6   < V ^8  d   QhRS[ RS[S[,          /# )r   object_r   )r   r
   r   r1   r3   r    r!   r4      s     * *# *(3- *r"   c                s    \        V4      pVf   R# \        V4      P                  4       pV P                  '       g   \	        V4      p\        V4      # )at  
Extract the docstring of an object, process it and returns it.
The processing consists in cleaning up the doctring's indentation,
taking only its 1st paragraph if `self.help` is not True,
and escape its control codes.

Args:
    object_ (Any): the object to get the docstring from.

Returns:
    Optional[str]: the processed docstring, or None if no docstring was found.
N)r   r   rN   r'   r$   r   )r7   rW   r)      && r    rV   ZInspect._get_formatted_doc   sE     g<~##%yyy#D)D#D))r"   )
r)   r+   r'   r5   r(   r/   r*   r,   r&   r.   )Z__name__
__module__rE   Z__firstlineno__Z__doc__r8   r6   rB   rK   r@   rV   Z__static_attributes__Z__classdictcell__)r2   s   @r    r%   r%      s      %)	
         6 
 
% %N[ [z* *r"   r%   c                s    V ^8  d   QhR\         \        \        \        ,          3,          R\        \
        R3,          /# )r   r/   r   .)r   objectr   r   r   r;   r   r   r    r!   r!      s1     ' 'eFDI$56 '5s;K 'r"   c                sV    \        V R4      '       g   \        V 4      p \        V RR4      # )zNReturns the MRO of an object's class, or of the object itself if it's a class.Z__mro__ )Zhasattrr;   rH   )r/   rA   r    get_object_types_mror\      s)    3	"" 3i3	2&&r"   c                sF    V ^8  d   QhR\         R\        \        ,          /# r9   )rZ   r   r   r   r   r    r!   r!      s     
 
 
JsO 
r"   c           
     sx    \        V 4       Uu. uF   p\        VRR4       R\        VRR4       2NK"  	  up# u upi )z
Returns the MRO of an object's class as full qualified names, or of the object itself if it's a class.

Examples:
    `object_types_mro_as_strings(JSONDecoder)` will return `['json.decoder.JSONDecoder', 'builtins.object']`
rY   rT   Z.rE   )r\   rH   )r/   Ztype_s   & r    get_object_types_mro_as_stringsr]      sM     *#..E 5,+
,Age^R.P-QR.  s   &7c                sR    V ^8  d   QhR\         R\        \        ,          R\        /# )r   r/   fully_qualified_types_namesr   )rZ   r   r   r0   r   r   r    r!   r!     s(     
 
	
.8o
	
r"   c                s<    \        V 4       F  pW!9   g   K   R# 	  R# )z
Returns `True` if the given object's class (or the object itself, if it's a class) has one of the
fully qualified names in its MRO.
TF)r]   )r/   r^   Z	type_namerX   r    is_object_one_of_typesr_     s!     5S9	3 : r"   )&rI   r   r   r   r   r   r   Ztypingr   r   r	   r
   r   r   r   Zconsoler   r   Zcontrolr   r5   r   Zjupyterr   Zpanelr   Zprettyr   Ztabler   Ztextr   r   r$   r%   r\   r]   r_   r[   r"   r    <module>r`      sR     K K J J J * ) ( !     T*l T*n'

r"   