(self)
List of all parent tasks up to this one.

        Returns:
            List[Task]
List of all parent tasks up to this one.
List of all parent tasks up to this one .
def tasktrace(self):
        """
        List of all parent tasks up to this one.

        Returns:
            List[Task]
        """
        if self.parent:
            return self.parent.parents + [self]
        else:
            return [self]
def tasktrace ( self ) : if self . parent : return self . parent . parents + [ self ] else : return [ self ]