@property
  def ancestors(self):
    if self.parent:
      return self.parent.ancestors + [self.parent]
    return []
Generate source templates for models reference and module API
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/template_objects.py/CodeObject.ancestors--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/utils/setup_docs.py/setup_docs.__init__