8f @ddlmZddlmZmZmZmZddlmZddl m Z ddl m Z ddl mZddlmZmZerdd lmZd d d d d d dddeedededeedeeddfdZedkr2ddlmZedededd fdZedded Sd S))Mapping) TYPE_CHECKINGAnyOptionalTuple)ReprHighlighter)Panel)Pretty)Table)TextTextType)ConsoleRenderableNTF)title sort_keys indent_guides max_length max_stringscopezMapping[str, Any]rrrrrreturnrc @t}tjdd}|ddtt t fdttt ffd}|r#t| | n| } | D][\} } tj | | d rd nd fd } | | t| ||||\tj||ddS)aRender python variables in a given scope. Args: scope (Mapping): A mapping containing variable names and values. title (str, optional): Optional title. Defaults to None. sort_keys (bool, optional): Enable sorting of items. Defaults to True. indent_guides (bool, optional): Enable indentation guides. Defaults to False. max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation. Defaults to None. max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None. Returns: ConsoleRenderable: A renderable object. )rrF)paddingexpandright)justifyitemrc`|\}}|d |fS)z2Sort special variables first, then alphabetically.__) startswithlower)rkey_s v/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/rich/scope.py sort_itemsz render_scope..sort_items)s-QNN4(((#))++66)r!rzscope.key.specialz scope.key)z =z scope.equals) highlighterrrrz scope.border)r border_styler)r r grid add_columnrstrrboolsorteditemsr assembleradd_rowr r fit) rrrrrrr& items_tabler$r-r!valuekey_texts r# render_scoper4sK."##K*VE:::K7+++7sCx7U49-=7777 6? QF5;;==j 1 1 1 1EKKMME  U= )=)=N%%; O "     '+%%      9#    r%__main__)printfoobarczgd}ddgddgdd}tttdd dS) N)rNTFz Hello Worldz1.1confirmFruitPurchase)appleorangemangoespomelog+? 194521489)versionmethodparamsidz [i]localsF)rr)r6r4locals)r7r8list_of_thingsdict_of_thingss r#testrJKsYGGG,???G    l688;%HHHIIIIIr%gk W4@g?$ @)collections.abcrtypingrrrrr&r panelr prettyr tabler textr rconsolerr+intr4__name__pip._vendor.richr6floatrJr%r#rWs######666666666666(((((( +****** !% $ $555 5 H 5 5  5  5 55555p z&&&&&& EGGGJ%JeJJJJJ D& EGGGGG!r%