MCPcopy
hub / github.com/Textualize/rich / pop_theme

Method pop_theme

rich/theme.py:106–111  ·  view source on GitHub ↗

Pop (and discard) the top-most theme.

(self)

Source from the content-addressed store, hash-verified

104 self.get = self._entries[-1].get
105
106 def pop_theme(self) -> None:
107 """Pop (and discard) the top-most theme."""
108 if len(self._entries) == 1:
109 raise ThemeStackError("Unable to pop base theme")
110 self._entries.pop()
111 self.get = self._entries[-1].get
112
113
114if __name__ == "__main__": # pragma: no cover

Callers 1

test_theme_stackFunction · 0.95

Calls 2

ThemeStackErrorClass · 0.85
popMethod · 0.45

Tested by 1

test_theme_stackFunction · 0.76