def get_circular() -> List[Entity]: # Get entities that are linked to itself. return [Entity.get_by_id(row['domain_id']) for row in Db.get_circular()]
def get_entities_linked_to_itself() -> list[Entity]: return [Entity.get_by_id(row['domain_id']) for row in Db.get_circular()]