=
"""Check if an object may be rendered by Rich."""
return
"""Cast an object to a renderable by calling __rich__ if present.
Args:
renderable (object): A potentially renderable object
Returns:
object: The result of recursively calling __rich__.
"""
: = # Prevent potential infinite loop
# Detect object which claim to have all the attributes
return
=
=
=
break
return