Path 1: 2811 calls (0.96)

Text (1325) Padding (1167) Pretty (98) ProgressBar (55) Renderables (43) Table (37) Group (27) Syntax (11) Rule (10) ColorBox (9)

True (2809) False (2)

1def is_renderable(check_object: Any) -> bool:
2    """Check if an object may be rendered by Rich."""
3    return (
4        isinstance(check_object, str)
5        or hasattr(check_object, "__rich__")
6        or hasattr(check_object, "__rich_console__")
7    )
            

Path 2: 132 calls (0.04)

'COL1' (12) 'COL2' (8) '1' (7) '2' (7) '3' (7) '4' (7) '[layout.tree.column]⬍' (4) 'foo' (4) 'bar\nbar\nbar\nbar\nbar' (3) '$275,000,000' (2)

True (132)

1def is_renderable(check_object: Any) -> bool:
2    """Check if an object may be rendered by Rich."""
3    return (
4        isinstance(check_object, str)
5        or hasattr(check_object, "__rich__")
6        or hasattr(check_object, "__rich_console__")
7    )