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

Method right

rich/align.py:122–141  ·  view source on GitHub ↗

Align a renderable to the right.

(
        cls,
        renderable: "RenderableType",
        style: Optional[StyleType] = None,
        *,
        vertical: Optional[VerticalAlignMethod] = None,
        pad: bool = True,
        width: Optional[int] = None,
        height: Optional[int] = None,
    )

Source from the content-addressed store, hash-verified

120
121 @classmethod
122 def right(
123 cls,
124 renderable: "RenderableType",
125 style: Optional[StyleType] = None,
126 *,
127 vertical: Optional[VerticalAlignMethod] = None,
128 pad: bool = True,
129 width: Optional[int] = None,
130 height: Optional[int] = None,
131 ) -> "Align":
132 """Align a renderable to the right."""
133 return cls(
134 renderable,
135 "right",
136 style=style,
137 vertical=vertical,
138 pad=pad,
139 width=width,
140 height=height,
141 )
142
143 def __rich_console__(
144 self, console: "Console", options: "ConsoleOptions"

Callers 2

test_shortcutsFunction · 0.80
align.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

test_shortcutsFunction · 0.64