def is_expandable(obj: Any) -> bool:
    'Check if an object may be expanded by pretty print.'
    return (isinstance(obj, _CONTAINERS) or (is_dataclass(obj) and (not isinstance(obj, type))) or hasattr(obj, '__rich_repr__'))
Check if an object may be expanded by pretty print.
def is_expandable(obj: Any) -> bool:
    
    return (isinstance(obj, _CONTAINERS) or (is_dataclass(obj) and (not isinstance(obj, type))) or hasattr(obj, '__rich_repr__'))