2biSSKrSSKJrJrJrJrJr SSKJr SSK J r J r "SS5r "SS \ 5r"S S 5r\S :Xa\ "5r\"\R&5 gg) N)DictListIOMappingOptional)DEFAULT_STYLES)Style StyleTypec \rSrSr%Sr\\\4\S'SS\ \ \\ 4S\ 4Sjjr \S\4Sj5r\SS \\S \ \S\ SS4S jj5r\SS \S\ S \ \SS4Sjj5rSrg)ThemeaA container for style information, used by :class:`~rich.console.Console`. Args: styles (Dict[str, Style], optional): A mapping of style names on to styles. Defaults to None for a theme with no styles. inherit (bool, optional): Inherit default styles. Defaults to True. stylesNinheritc 2U(a[R"5O0UlUbkURRUR 5VVs0sH3up4U[ U[ 5(aUO[ R"U5_M5 snn5 ggs snnf)N)r copyrupdateitems isinstancer parse)selfrrnamestyles ڈ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/rich/theme.py__init__Theme.__init__s{07n))+B   KK  (.||~'5 :eU#;#;%UASS'5  s:B returnc~SSRS[URR5555-nU$)z-Get contents of a config file for this theme.z [styles]  c34# UHupUSU3v M g7f)z = N).0rrs r Theme.config..!s!* 3NKDtfCw 3Ns)joinsortedrr)rconfigs rr' Theme.configs? * 39$++:K:K:M3N* !   config_filesourcec[R"5nURXS9 URS5VVs0sHupVU[R "U5_M nnn[ XsS9nU$s snnf)aLoad a theme from a text mode file. Args: config_file (IO[str]): An open conf file. source (str, optional): The filename of the open file. Defaults to None. inherit (bool, optional): Inherit default styles. Defaults to True. Returns: Theme: A New theme instance. )r+r)r) configparser ConfigParser read_filerr rr ) clsr*r+rr'rvaluerthemes r from_fileTheme.from_file&sg**,4>Dll8>TU>T{t$ E**>TUf. Vs#A*pathencodingcn[USUS9nURXAUS9sSSS5 $!,(df  g=f)a/Read a theme from a path. Args: path (str): Path to a config file readable by Python configparser module. inherit (bool, optional): Inherit default styles. Defaults to True. encoding (str, optional): Encoding of the config file. Defaults to None. Returns: Theme: A new theme instance. rt)r6)r+rN)openr3)r0r5rr6r*s rread Theme.read:s.$x 0K==7=K1 0 0s& 4)r)NT)TN)__name__ __module__ __qualname____firstlineno____doc__rstrr __annotations__rrr boolrpropertyr' classmethodrr3r:__static_attributes__r!r)rr r s e QU wsI~67 IM QUS'+3C=JN &HLLL!%L8@ L LLr)r c\rSrSrSrSrg)ThemeStackErrorLz5Base exception for errors related to the theme stack.r!N)r<r=r>r?r@rFr!r)rrHrHLs?r)rHcN\rSrSrSrS\SS4SjrS S\S\SS4SjjrS S jr S r g) ThemeStackPz>A stack of themes. Args: theme (Theme): A theme instance r2rNcdUR/UlURSRUlg)N)r_entriesget)rr2s rrThemeStack.__init__Ws%16 ==$((r)rcU(a0URSEUREOURR5nURRU5 URSRUlg)zPush a theme on the top of the stack. Args: theme (Theme): A Theme instance. inherit (boolean, optional): Inherit styles from current top of stack. rNN)rOrrappendrP)rr2rrs r push_themeThemeStack.push_theme[s_6= 1t}}R 1ELL 1%,,BSBSBU  V$==$((r)c[UR5S:Xa [S5eURR5 URSRUlg)z%Pop (and discard) the top-most theme.rzUnable to pop base themerNN)lenrOrHpoprP)rs r pop_themeThemeStack.pop_themeisE t}}  "!"<= = ==$((r))rOrP)T)rN) r<r=r>r?r@r rrCrTrYrFr!r)rrKrKPs9 )e)) ) ) ) ))r)rK__main__)r-typingrrrrrdefault_stylesr rr r r ExceptionrHrKr<r2printr'r!r)rr`s^44*#ALALH@i@))B z GE %,,r)