+
    i%                         ^ 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                0    V ^8  d   QhR\         R\         /# )   docreturn)str)formats   "`/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/pip/_vendor/rich/_inspect.py__annotate__r"      s      # #     c                0    V P                  R4      w  p pV# )z)Get the first paragraph from a docstring.z

)	partition)r   	paragraph_s   &  r!   _first_paragraphr(      s    mmF+OIq!r#   c                      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                j   < 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/   r0   r1   r2   r3   r   N)r	   r   r   bool)r    __classdict__s   "r!   r"   Inspect.__annotate__%   s~       !	
         
r#   c       	        
   \        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   highlighterr5   _make_titler+   r,   r-   r.   r/   r0   r1   r3   )selfr5   r+   r,   r-   r.   r/   r0   r1   r2   r3   s   &&$$$$$$$$$r!   __init__Inspect.__init__%   ss     +,33d..s3
)--G-g	LLD	((&	
r#   c                &   < V ^8  d   QhRS[ RS[/# r   r5   r   )r	   r   )r    r7   s   "r!   r"   r8   @   s      s t r#   c                    \        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   typer:   )r<   r5   	title_str
title_texts   &&  r!   r;   Inspect._make_title@   sN     # HT#Y 	
 %%i0
r#   c                    < V ^8  d   QhRS[ /# r   r   r   )r    r7   s   "r!   r"   r8   J   s     
 
% 
r#   c                t    \         P                  ! \        V P                  4       !  V P                  R RR7      # )zscope.border)r+   border_stylepaddingr      )r   fitr   _renderr+   )r<   s   &r!   __rich__Inspect.__rich__J   s.    yy4<<>"**'	
 	
r#   c                <   < V ^8  d   QhRS[ RS[RS[S[,          /# )r   namer5   r   )r   r	   r   r   )r    r7   s   "r!   r"   r8   R   s&     % %3 %S %Xd^ %r#   c                N    \        \        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(...)Nzinspect.callablestylezlink file://__qualname__classz	async defdef zinspect.r'   )r   r   
ValueError	TypeErrorr   OSErrorr   stylizer:   getattrinspectr   iscoroutinefunctionassemblereplace)
r<   rS   r5   
_signaturesource_filenamecallable_namesignature_textqualnameprefixqual_signatures
   &&&       r!   _get_signature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                0   < V ^8  d   QhRS[ S[,          /# rH   )r   r   )r    r7   s   "r!   r"   r8   y   s     [ [.1 [r#   c           	   #  |  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                t    V ^8  d   QhR\         \        \        3,          R\         \        \        3,          /# )r   itemr   )r   r   r	   r6   )r    s   "r!   r"   %Inspect._render.<locals>.__annotate__|   s+     	= 	=U38_ 	=tSy1A 	=r#   c                 d    V w  pw  r#\        V4      VP                  R 4      P                  4       3# )r'   )rB   striplower)rq   key_errorr3   s   &   r!   
sort_items#Inspect._render.<locals>.sort_items|   s.    #' C&UOSYYs^%9%9%;<<r#   c                R    V ^8  d   QhR\         R\        \        \        3,          /# )r   	attr_namer   )r   r   r	   )r    s   "r!   r"   rr      s"     	% 	%C 	%E#s(O 	%r#   c                Z   <  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)r`   	Exception)r{   errorr5   s   & r!   safe_getattr%Inspect._render.<locals>.safe_getattr   s4    %gc9566 %t}$%s    *%**__r'   )rv   F)rK   expandright)justify Nzinspect.helprV   T)indent_guides
max_length
max_stringzinspect.value.border)rJ   zinspect.attr.dunderzinspect.attrzinspect.error)r:   
r[   zinspect.docz[b cyan]za[/][i] attribute(s) not shown.[/i] Run [b][magenta]inspect[/]([not b]inspect[/])[/b] for options.rL   )z =zinspect.equals)r5   dirlenr0   
startswithr/   r1   r   grid
add_columnadd_rowr:   rB   rl   r.   _get_formatted_docr   r3   r   r   r   r   rc   copyr_   reprr-   append	row_countfrom_markup)r<   rx   r   keystotal_itemsrv   not_shown_countitemsitems_tabler   r:   r   _docdoc_textr~   r3   key_textwarning_signature_textr.   r   r5   s   &                    @r!   rO   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                6   < V ^8  d   QhRS[ RS[S[,          /# )r   object_r   )r	   r   r   )r    r7   s   "r!   r"   r8      s     * *# *(3- *r#   c                    \        V4      pVf   R# \        V4      P                  4       pV P                  '       g   \	        V4      p\        V4      # )au  
Extract the docstring of an object, process it and returns it.
The processing consists in cleaning up the docstring'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   rt   r,   r(   r   )r<   r   r.   s   && r!   r   Inspect._get_formatted_doc   sE     g<~##%yyy#D)D#D))r#   )
r.   r0   r,   r:   r-   r5   r/   r1   r+   r3   )__name__
__module__rX   __firstlineno____doc__r=   r;   rP   rl   rO   r   __static_attributes____classdictcell__)r7   s   @r!   r*   r*      s      %)	
         6 
 
% %N[ [z* *r#   r*   c                    V ^8  d   QhR\         \        \        \        ,          3,          R\        \
        R3,          /# )r   r5   r   .)r   objectr   r	   r   rC   )r    s   "r!   r"   r"      s1     ' 'eFDI$56 '5s;K 'r#   c                V    \        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.__mro__ )hasattrrC   r`   )r5   s   &r!   get_object_types_mror      s)    3	"" 3i3	2&&r#   c                F    V ^8  d   QhR\         R\        \        ,          /# r@   )r   r
   r   )r    s   "r!   r"   r"      s     
 
 
JsO 
r#   c           
     x    \        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']`
r   r   .rX   )r   r`   )r5   type_s   & r!   get_object_types_mro_as_stringsr      sM     *#..E 5,+
,Age^R.P-QR.  s   &7c                R    V ^8  d   QhR\         R\        \        ,          R\        /# )r   r5   fully_qualified_types_namesr   )r   r
   r   r6   )r    s   "r!   r"   r"     s(     
 
	
.8o
	
r#   c                <    \        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   )r5   r   	type_names   && r!   is_object_one_of_typesr     s!     5S9	3 : r#   )&ra   r   r   r   r   r   r   typingr	   r
   r   r   r   r   r   consoler   r   controlr   r:   r   jupyterr   panelr   prettyr   tabler   textr   r   r(   r*   r   r   r   r   r#   r!   <module>r      sR     K K J J J * ) ( !     T*l T*n'

r#   