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

Method render_annotation

rich/table.py:497–507  ·  view source on GitHub ↗
(
            text: TextType, style: StyleType, justify: "JustifyMethod" = "center"
        )

Source from the content-addressed store, hash-verified

495 )
496
497 def render_annotation(
498 text: TextType, style: StyleType, justify: "JustifyMethod" = "center"
499 ) -> "RenderResult":
500 render_text = (
501 console.render_str(text, style=style, highlight=False)
502 if isinstance(text, str)
503 else text
504 )
505 return console.render(
506 render_text, options=render_options.update(justify=justify)
507 )
508
509 if self.title:
510 yield from render_annotation(

Callers

nothing calls this directly

Calls 3

render_strMethod · 0.80
renderMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected