Files
tamigo-cli/venv/lib/python3.12/site-packages/rich/__pycache__/tree.cpython-312.pyc

98 lines
12 KiB
Plaintext
Raw Normal View History

<EFBFBD>
<00><16>i<EFBFBD>$<00> <00><00>ddlmZmZmZmZddlmZmZddlm Z m
Z
m Z m Z ddl mZddlmZddlmZddlmZmZmZdd lmZeeeeefZGd
<EFBFBD>d e<0E>Zed k(<00>r<>dd lmZddlm Z ddl!m"Z"ddl#m$Z$ddl%m&Z&e&ddg<02><14>Z'e'jQddd<17><18>e'jQdd<1A><1B>e'jQddd<1E><1F>e'jSd d!d"<22>e'jSd#d$d%<25>e'jSd&d'd(<28>e'jSd)d*d+<2B>d,Z*e$e*d-d.d<17>/<2F>Z+e d0<64>Z,ed1dd<17>2<EFBFBD>Z-e-j]d3d4<64>5<EFBFBD>Z/e/j]d6d7<64>5<EFBFBD>Z0e0j]ed8e+<2B><00>e0j]ed9e"e,d<1E>:<3A><00><00>e/j]d;d<<3C>5<EFBFBD>Z1de1_2e"jfd=d4<64>:<3A>Z4e1j]ed>e4<65><00>e1j]ed?e'<27><00>e <09>Zejke-<2D>y@y@)A<>)<04>Iterator<6F>List<73>Optional<61>Tuple<6C>)<02>
loop_first<EFBFBD> loop_last)<04>Console<6C>ConsoleOptions<6E>RenderableType<70> RenderResult)<01> JupyterMixin)<01> Measurement)<01>Segment)<03>Style<6C>
StyleStack<EFBFBD> StyleType)<01>Styledc<00><><00>eZdZdZdZgd<03>Zdddddd<08>d ed
ed ed ed ededdfd<11>Z ddddd<12>d ed
e
ed e
ed ed e
eddf d<13>Z dd<14>Z dd<15>Z y)<18>Treea<65>A renderable for a tree structure.
Attributes:
ASCII_GUIDES (GuideType): Guide lines used when Console.ascii_only is True.
TREE_GUIDES (List[GuideType, GuideType, GuideType]): Default guide lines.
Args:
label (RenderableType): The renderable or str for the tree label.
style (StyleType, optional): Style of this tree. Defaults to "tree".
guide_style (StyleType, optional): Style of the guide lines. Defaults to "tree.line".
expanded (bool, optional): Also display children. Defaults to True.
highlight (bool, optional): Highlight renderable (if str). Defaults to False.
hide_root (bool, optional): Hide the root node. Defaults to False.
)<04> z| z+-- z`-- ))ru│ u
├── u
└── )ru┃ u
┣━━ u
┗━━ )ru║ u
╠══ u
╚══ <20>treez tree.lineTF)<05>style<6C> guide_style<6C>expanded<65> highlight<68> hide_root<6F>labelrrrrr<00>returnNc<00>f<00>||_||_||_g|_||_||_||_y<00>N)rrr<00>childrenrrr)<07>selfrrrrrrs <20>O/home/daniel/Projects/tamigo-cli/venv/lib/python3.12/site-packages/rich/tree.py<70>__init__z Tree.__init__%s6<00><00><1B><04>
<EFBFBD><1A><04>
<EFBFBD>&<26><04><18>$&<26><04> <0A> <20><04> <0A>"<22><04><0E>"<22><04><0E><00>rrrrc<00><><00>t||<02> |jn||<03> |jn|||<05> |jn|<05><01>}|jj |<06>|S)a3Add a child tree.
Args:
label (RenderableType): The renderable or str for the tree label.
style (StyleType, optional): Style of this tree. Defaults to "tree".
guide_style (StyleType, optional): Style of the guide lines. Defaults to "tree.line".
expanded (bool, optional): Also display children. Defaults to True.
highlight (Optional[bool], optional): Highlight renderable (if str). Defaults to False.
Returns:
Tree: A new child Tree, which may be further modified.
r')rrrrr"<00>append)r#rrrrr<00>nodes r$<00>addzTree.add7sX<00><00>*<14> <11> %<25> <0A>$<24>*<2A>*<2A>5<EFBFBD>,7<>,?<3F><04>(<28>(<28>[<5B><1D>(1<>(9<>d<EFBFBD>n<EFBFBD>n<EFBFBD>y<EFBFBD> 
<EFBFBD><04> <0A> <0A> <0A><1C><1C>T<EFBFBD>"<22><13> r&c
#<00><><00><00><02>K<00>g}|j}|j}tj<00>}|j}t j <00>}|<07>jd<01><02>xs|} td<03>\}
} } } t<00>dtdt
dtf<06><1C><02>fd<07> }|| | <09>g}|tt<00>g<01><00><00>t|<07>j<00><00>}t|<07>j<00><00>}t dd<08> <09>}d
}|<03>rW|<04>} t|<14>\}}||<14>|r|| |d jxs|<08>|d <|j ||j<00>z} |j ||j<00>z}|<0F>j"rd nd d}|j%t'|j(|<17><00>j+<00>j,t/d<0E>|D<00><00>z
<00>j0d<00><0F><00>j2du<01><10>}|d
k(r <0C>j"spt5|<19>D]b\}}|r&<26>j7||j8|<12><11>Ed{<00><02><02>|Ed{<00><02><02>|<06><01>|s<01>?|s<01>B||r|
n| |d jxs|<08>|d <<00>d|j:r<>|j<r<>||r|
n| |d jxs|<08>|d <|j|t?|j<<00>d k(r| n| | <09><00>|jA||j<00><00>|jA||j<00><00>|tt|j<<00><00><00>|d z }|r<02><02>Vyy#t$rU|j<00>|r?|d jxs|} || | <09>|d <|j<00>|j<00>Y<00><02><>wxYw7<00><01>y7<00><01>r<EFBFBD>w)N<>)<01>default<6C><00>indexrrc<00><><00><03><00>jr<10>j|}n>|jrdn|jrdnd}<03>j<00>j
rdn||}<00>||<01>S)z.Make a Segment for a level of the guide lines.r<00>r)<06>
ascii_only<EFBFBD> ASCII_GUIDES<45>bold<6C>
underline2<EFBFBD> TREE_GUIDES<45>legacy_windows)r0r<00>line<6E>guide<64>_Segment<6E>optionsr#s <20><><EFBFBD>r$<00>
make_guidez)Tree.__rich_console__.<locals>.make_guidees`<00><><00><16>!<21>!<21><1B>(<28>(<28><15>/<2F><04>"<22>Z<EFBFBD>Z<EFBFBD><01>5<EFBFBD>3C<33>3C<33>a<EFBFBD><11><05><1B>'<27>'<27>W<EFBFBD>-C<>-C<><01><15>O<>PU<50>V<><04><1B>D<EFBFBD>%<25>(<28> (r&F)r5r6r<00><><EFBFBD><EFBFBD><EFBFBD>r2rc3<00>4K<00>|]}|j<00><01><00>y<00>wr!)<01> cell_length)<02>.0<EFBFBD>levels r$<00> <genexpr>z(Tree.__rich_console__.<locals>.<genexpr><3E>s<00><00><><00>@<40><05>%<25>+<2B>+<2B>@<40>s<00>)<03>widthr<00>height)<01>pad)<01>
post_style)!<21>popr)rr9<00> get_styler<00>nullr<00>range<67>int<6E>iterr rr<00>next<78> StopIteration<6F>currentr<00> render_linesrr<00>update<74> max_width<74>sumr<00>justifyr<00> apply_style<6C>background_stylerr"<00>len<65>push)r#<00>consoler<<00>stackrHrY<00>new_linerI<00>
null_styler<00>SPACE<43>CONTINUE<55>FORK<52>ENDr=<00>levels<6C>guide_style_stack<63> style_stack<63>remove_guide_styles<65>depth<74>
stack_node<EFBFBD>lastr*r<00>prefix<69>renderable_lines<65>firstr9r;s` ` @r$<00>__rich_console__zTree.__rich_console__Vs<><00><><00><><00>46<34><05><13>i<EFBFBD>i<EFBFBD><03><14>|<7C>|<7C><04><1A><<3C><<3C>><3E><08><1B>%<25>%<25> <09><1A>Z<EFBFBD>Z<EFBFBD>\<5C>
<EFBFBD><1F><04> 0<> 0<>"<22>=<3D>K<><1A> <0B>%*<2A>1<EFBFBD>X<EFBFBD>"<22><05>x<EFBFBD><14>s<EFBFBD><1A><08> )<29>c<EFBFBD> )<29>%<25> )<29>G<EFBFBD> )<29>",<2C>H<EFBFBD>k<EFBFBD>!B<> C<><06> <0C>T<EFBFBD>)<29>T<EFBFBD>F<EFBFBD>#<23> $<24>%<25>&<26>y<EFBFBD><14>1A<31>1A<31>'B<>C<><19> <20><19>4<EFBFBD>:<3A>:<3A>!6<>7<> <0B>#<23><15>5<EFBFBD>A<><1B><11><05><13><1C><15>J<EFBFBD> <19>!<21>*<2A>-<2D>
<EFBFBD><04>d<EFBFBD> <11><1A> <1C><13>'<27><03>V<EFBFBD>B<EFBFBD>Z<EFBFBD>-=<3D>-=<3D>-K<><1A>L<><06>r<EFBFBD>
<EFBFBD>+<2B>3<>3<>i<EFBFBD><04>@P<>@P<>6Q<36>Q<>K<EFBFBD><1F>'<27>'<27>)<29>D<EFBFBD>J<EFBFBD>J<EFBFBD>*?<3F>?<3F>E<EFBFBD><1B>$<24>.<2E>.<2E>Q<EFBFBD>a<EFBFBD>:<3A>;<3B>F<EFBFBD>&<26>3<>3<><16>t<EFBFBD>z<EFBFBD>z<EFBFBD>5<EFBFBD>)<29><17><0E><0E>!<21>+<2B>+<2B><19>@<40><16>@<40>@<40>A<01>"<22>n<EFBFBD>n<EFBFBD><1F> <1F><12> <1C>O<EFBFBD>O<EFBFBD>4<EFBFBD>/<2F> 4<> <0E> <1C><1A>Q<EFBFBD>J<EFBFBD>4<EFBFBD>><3E>><3E>#-<2D>.><3E>#?<3F> <1A>K<EFBFBD>E<EFBFBD>4<EFBFBD><1D>#+<2B>#7<>#7<>"<22>!<21>2<>2<>':<3A>$8<>$<1A><1A><1A>
$<24>O<EFBFBD>O<EFBFBD>"<22>N<EFBFBD><1C><16>%/<2F>%)<29>E<EFBFBD>x<EFBFBD><16><02><1A>9I<39>9I<39>9W<39>Z<EFBFBD>&<1A><06>r<EFBFBD>
<EFBFBD> <1A><14>}<7D>}<7D><14><1D><1D>'<27>!<21>E<EFBFBD>x<EFBFBD><16><02><1A>1A<31>1A<31>1O<31>Z<EFBFBD><12><06>r<EFBFBD>
<EFBFBD><17> <0A> <0A><1E>c<EFBFBD>$<24>-<2D>-<2D>&8<>A<EFBFBD>&=<3D>s<EFBFBD>4<EFBFBD><1B>U<><12><1C> <20> <20><19>4<EFBFBD>:<3A>:<3A>!6<>7<>!<21>&<26>&<26>y<EFBFBD><14>1A<31>1A<31>'B<>C<><14>T<EFBFBD>)<29>D<EFBFBD>M<EFBFBD>M<EFBFBD>2<>3<>4<><15><11>
<EFBFBD><05>o<14><>!<21> <19><16>
<EFBFBD>
<EFBFBD> <0C><19>"(<28><12>*<2A>"2<>"2<>"@<40>j<EFBFBD>K<EFBFBD>!+<2B>D<EFBFBD>+<2B>!><3E>F<EFBFBD>2<EFBFBD>J<EFBFBD>%<25>)<29>)<29>+<2B><1F>O<EFBFBD>O<EFBFBD>%<25><18> <19><>:<1A><>
$<24>s]<00>D O<01>M!<00>D*O<01> O<06>
O<01>O<06>
O<01>O<01>"C;O<01>O<01>!AN?<03>;O<01>>N?<03>?O<01>Oc<00><><00>t|g<01>g}|j}|j}d}d}tj}d} |r<>|<04>}
t |
<EFBFBD>} ||
<EFBFBD>|||| j<00>\} } | dz}t| |z|<06>}t| |z|<07>}| jr,| jr |t| j<00><00>| dz } |r<01><>t||<07>S#t $r| dz} Y<00><>wxYw)Nrrr/) rMrHr)r<00>getrNrOr<00>maxrr")r#rZr<r[rHrY<00>minimum<75>maximum<75>measurerB<00> iter_treer<00> min_measure<72> max_measure<72>indents r$<00>__rich_measure__zTree.__rich_measure__<5F>s<><00><00>(,<2C>T<EFBFBD>F<EFBFBD>|<7C>n<EFBFBD><05><13>i<EFBFBD>i<EFBFBD><03><14>|<7C>|<7C><04><13><07><13><07><1D>/<2F>/<2F><07><11><05><13><1B><05>I<EFBFBD> <19><1B>I<EFBFBD><EFBFBD><04> <11><19>O<EFBFBD>'.<2E>w<EFBFBD><07><14><1A><1A>'L<> $<24>K<EFBFBD><1B><1A>Q<EFBFBD>Y<EFBFBD>F<EFBFBD><19>+<2B><06>.<2E><07>8<>G<EFBFBD><19>+<2B><06>.<2E><07>8<>G<EFBFBD><13>}<7D>}<7D><14><1D><1D><14>T<EFBFBD>$<24>-<2D>-<2D>(<28>)<29><15><11>
<EFBFBD><05><14><1B>7<EFBFBD>G<EFBFBD>,<2C>,<2C><>!<21> <19><15><11>
<EFBFBD><05><18> <19>s<00> C<00>C+<03>*C+)rZr
r<r rr )rZr
r<r rr)<0E>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r4r7r r<00>boolr%rr+rlrw<00>r&r$rrs <00><00> <08>4<>L<EFBFBD><06>K<EFBFBD>"<22>!,<2C><1D><1F><1F>#<23><1D>#<23><19> #<23>
<1F> #<23> <17> #<23><18>#<23><18>#<23>
<0E>#<23>,&*<2A>+/<2F><1D>$)<29><14><1D><14><18> <09>"<22> <14>
<1E>i<EFBFBD>(<28> <14> <17> <14><1C>D<EFBFBD>><3E><14>
<10><14>>X<1B> <20>X<1B>+;<3B>X<1B> <17>X<1B>t-<2D> <20>-<2D>+;<3B>-<2D> <16>-r&r<00>__main__)<01>Group)<01>Markdown)<01>Panel)<01>Syntax)<01>Tabler-<00>dim)<01>
row_styles<EFBFBD>Released<65>cyanT)r<00>no_wrap<61>Title<6C>magenta)rz
Box Office<63>right<68>green)rUrz Dec 20, 2019z Star Wars: The Rise of Skywalkerz $952,110,690z May 25, 2018zSolo: A Star Wars Storyz $393,151,347z Dec 15, 2017z!Star Wars Ep. V111: The Last Jediz$1,332,539,889z Dec 16, 2016zRogue One: A Star Wars Storyz$1,332,439,889zmclass Segment(NamedTuple):
text: str = ""
style: Optional[Style] = None
is_control: bool = False
<EFBFBD>python<6F>monokai)<02>theme<6D> line_numbersz=### example.md
> Hello, World!
>
> Markdown _all_ the things
u🌲 [b green]Rich Tree)rrz:file_folder: Renderables<65>red)rz!:file_folder: [bold yellow]Atomiczuu greenu 📄 Syntaxu 📄 Markdown)<01> border_stylez&:file_folder: [bold magenta]Containersz bold magentaz Just a panelu 📄 Panelsu📄 [b magenta]TableN)6<>typingrrrr<00>_looprr rZr
r r r <00>jupyterrrrr<00>segmentrrrrr<00>styledr<00>str<74> GuideTyperrx<00> rich.consoler<00> rich.markdownr<6E><00>
rich.panelr<6C><00> rich.syntaxr<78><00>
rich.tabler<65><00>table<6C>
add_column<EFBFBD>add_row<6F>code<64>syntax<61>markdown<77>rootr+r*<00> simple_node<64>containers_noder<00>fit<69>panel<65>printr}r&r$<00><module>r<>s<><00><01>2<>2<>(<28>J<>J<>!<21> <20><1C>/<2F>/<2F><1A> <11>#<23>s<EFBFBD>C<EFBFBD><13>$<24> %<25> <09>{-<2D><<3C>{-<2D>| <0C>z<EFBFBD><19>"<22>&<26> <20>"<22> <20> <11>b<EFBFBD>%<25>[<5B> )<29>E<EFBFBD> <09><14><14>Z<EFBFBD>v<EFBFBD>t<EFBFBD><14><<3C> <09><14><14>W<EFBFBD>I<EFBFBD><14>.<2E> <09><14><14>\<5C>7<EFBFBD>'<27><14>B<> <09>M<EFBFBD>M<EFBFBD>.<2E>"D<>n<EFBFBD>U<> <09>M<EFBFBD>M<EFBFBD>.<2E>";<3B>^<5E>L<> <09>M<EFBFBD>M<EFBFBD>.<2E>"E<>GW<47>X<> <09>M<EFBFBD>M<EFBFBD>.<2E>"@<40>BR<42>S<> <04>D<EFBFBD> <14>D<EFBFBD>(<28>)<29>$<24> G<>F<EFBFBD><17> <04><06>H<EFBFBD> <10>)<29>T<EFBFBD>T<EFBFBD> J<>D<EFBFBD> <0F>8<EFBFBD>8<EFBFBD>/<2F>U<EFBFBD>8<EFBFBD> C<>D<EFBFBD><16>(<28>(<28>><3E>J<EFBFBD>(<28>W<>K<EFBFBD><0F>O<EFBFBD>O<EFBFBD>E<EFBFBD>-<2D><16>0<>1<><0F>O<EFBFBD>O<EFBFBD>E<EFBFBD>/<2F>5<EFBFBD><18><07>+P<>Q<>R<><1A>h<EFBFBD>h<EFBFBD>0<>n<EFBFBD><1F><06>O<EFBFBD> $<24>O<EFBFBD><1C> <15>E<EFBFBD>I<EFBFBD>I<EFBFBD>n<EFBFBD>5<EFBFBD> 9<>E<EFBFBD><13><17><17><05>m<EFBFBD>U<EFBFBD>3<>4<><13><17><17><05>5<>u<EFBFBD>=<3D>><3E><15>i<EFBFBD>G<EFBFBD> <0B>M<EFBFBD>M<EFBFBD>$<24><17>kr&