mirror of https://github.com/Textualize/rich.git
docstrings
This commit is contained in:
parent
914478eab4
commit
73738c7c74
|
@ -20,7 +20,9 @@ class Box:
|
||||||
│ ││ foot
|
│ ││ foot
|
||||||
└─┴┘ bottom
|
└─┴┘ bottom
|
||||||
|
|
||||||
|
Args:
|
||||||
|
box (str): Characters making up box.
|
||||||
|
ascii (bool, optional): True if this box uses ascii characters only. Default is False.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, box: str, *, ascii: bool = False) -> None:
|
def __init__(self, box: str, *, ascii: bool = False) -> None:
|
||||||
|
@ -69,10 +71,10 @@ class Box:
|
||||||
Args:
|
Args:
|
||||||
options (ConsoleOptions): Console options used in rendering.
|
options (ConsoleOptions): Console options used in rendering.
|
||||||
safe (bool, optional): Substitute this for another Box if there are known problems
|
safe (bool, optional): Substitute this for another Box if there are known problems
|
||||||
in displaying (currently only relevant on Windows). Default is True.
|
displaying on the platform (currently only relevant on Windows). Default is True.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
[Box]: A different Box or the same Box.
|
Box: A different Box or the same Box.
|
||||||
"""
|
"""
|
||||||
box = self
|
box = self
|
||||||
if options.legacy_windows and safe:
|
if options.legacy_windows and safe:
|
||||||
|
|
Loading…
Reference in New Issue