(
text: TextType, style: StyleType, justify: "JustifyMethod" = "center"
)
| 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( |
nothing calls this directly
no test coverage detected