title: Colorizing Text within Rich Tree
body: <p>Im building some trees within Rich. However Im outputting obj repr() and also Python object details that Rich only seems to want to display if I pass the data to the tree branch as a string. i.e.</p>
  <pre><code>tree = Tree(str(type(root_obj)))
  </code></pre>
  <p>My question is this out can i colourize the output of my tree in Rich. For example if I pass a type to the tree without casting it to a string I get:</p>
  <pre><code>tree = Tree(type(root_obj))
  ...
  rich.errors.NotRenderableError: Unable to render &lt;class 'nornir.core.task.AggregatedResult'&gt;; A str, Segment or object with __rich_console__ method is required
  </code></pre>
  <p>But not sure what console method to use here. Any help would be great. Thanks.</p>