(self)
return self._task_stack[-1]
Get the first task in the stack.

        :return: The top task in the stack, or None if the stack is empty.
        :rtype: AnalysisTask
Get the first task in the stack.
Get the first task in the stack .
def _top_task(self):
        """
        Get the first task in the stack.

        :return: The top task in the stack, or None if the stack is empty.
        :rtype: AnalysisTask
        """

        if not self._task_stack:
            return None
        return self._task_stack[-1]
def _top_task ( self ) : if not self . _task_stack : return None return self . _task_stack [ - 1 ]