Push a new style on to the stack. Args: style (Style): New style to combine with current style.
(self, style: Style)
| 779 | return self._stack[-1] |
| 780 | |
| 781 | def push(self, style: Style) -> None: |
| 782 | """Push a new style on to the stack. |
| 783 | |
| 784 | Args: |
| 785 | style (Style): New style to combine with current style. |
| 786 | """ |
| 787 | self._stack.append(self._stack[-1] + style) |
| 788 | |
| 789 | def pop(self) -> Style: |
| 790 | """Pop last style and discard. |