rich.abc

class rich.abc.RichRenderable[source]

An abstract base class for Rich renderables.

Note that there is no need to extend this class, the intended use is to check if an object supports the Rich renderable protocol. For example:

if isinstance(my_object, RichRenderable):
    console.print(my_object)