docs: def inherit(self):
          """ Apply inheritance """
          # Preserve original data and merge parent
          # (original data needed for custom inheritance extensions)
          self.original_data = self.data
          self.merge()
          log.debug("Data for '{0}' inherited.".format(self))
          log.data(pretty(self.data))
          # Apply inheritance to all children
          for child in self.children.values():
              child.inherit()