mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
fix docstring
This commit is contained in:
parent
a7c09d278a
commit
60bdcda4fe
2 changed files with 20 additions and 19 deletions
|
@ -11,6 +11,7 @@ Reference
|
|||
reference/markdown.rst
|
||||
reference/measure.rst
|
||||
reference/panel.rst
|
||||
reference/progress.rst
|
||||
reference/rule.rst
|
||||
reference/segment.rst
|
||||
reference/style.rst
|
||||
|
|
|
@ -23,26 +23,26 @@ class _Bit:
|
|||
|
||||
|
||||
class Style:
|
||||
"""A terminal style.
|
||||
"""A terminal style.
|
||||
|
||||
A terminal style consists of a color (`color`), a backround color (`bgcolor`), and a number of attributes, such
|
||||
as bold, italic etc. The attributes have 3 states: they can either be on
|
||||
(``True``), off (``False``), or not set (``None``).
|
||||
|
||||
Args:
|
||||
color (Union[Color, str], optional): Color of terminal text. Defaults to None.
|
||||
bgcolor (Union[Color, str], optional): Color of terminal background. Defaults to None.
|
||||
bold (bool, optional): Enable bold text. Defaults to None.
|
||||
dim (bool, optional): Enable dim text. Defaults to None.
|
||||
italic (bool, optional): Enable italic text. Defaults to None.
|
||||
underline (bool, optional): Enable underlined text. Defaults to None.
|
||||
blink (bool, optional): Enabled blinking text. Defaults to None.
|
||||
blink2 (bool, optional): Enable fast blinking text. Defaults to None.
|
||||
reverse (bool, optional): Enabled reverse text. Defaults to None.
|
||||
conceal (bool, optional): Enable concealed text. Defaults to None.
|
||||
strike (bool, optional): Enable strikethrough text. Defaults to None.
|
||||
|
||||
"""
|
||||
A terminal style consists of a color (`color`), a backround color (`bgcolor`), and a number of attributes, such
|
||||
as bold, italic etc. The attributes have 3 states: they can either be on
|
||||
(``True``), off (``False``), or not set (``None``).
|
||||
|
||||
Args:
|
||||
color (Union[Color, str], optional): Color of terminal text. Defaults to None.
|
||||
bgcolor (Union[Color, str], optional): Color of terminal background. Defaults to None.
|
||||
bold (bool, optional): Enable bold text. Defaults to None.
|
||||
dim (bool, optional): Enable dim text. Defaults to None.
|
||||
italic (bool, optional): Enable italic text. Defaults to None.
|
||||
underline (bool, optional): Enable underlined text. Defaults to None.
|
||||
blink (bool, optional): Enabled blinking text. Defaults to None.
|
||||
blink2 (bool, optional): Enable fast blinking text. Defaults to None.
|
||||
reverse (bool, optional): Enabled reverse text. Defaults to None.
|
||||
conceal (bool, optional): Enable concealed text. Defaults to None.
|
||||
strike (bool, optional): Enable strikethrough text. Defaults to None.
|
||||
|
||||
"""
|
||||
|
||||
_color: Optional[Color]
|
||||
_bgcolor: Optional[Color]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue