airflow/models/dag.py
def tree_view(self) -> None:
        """Print an ASCII tree representation of the DAG."""

        def get_downstream(task, level=0):
            print((" " * level * 4) + str(task))
            level += 1
            for t in task.downstream_list:
                get_downstream(t, level)

        for t in self.roots:
            get_downstream(t)
Print an ASCII tree representation of the DAG.
Print an ASCII tree representation of the DAG.
Print an ASCII tree representation of the DAG .
def tree_view(self) -> None:
        def get_downstream(task, level=0):
            print((" " * level * 4) + str(task))
            level += 1
            for t in task.downstream_list:
                get_downstream(t, level)
        for t in self.roots:
            get_downstream(t)
def tree_view ( self ) -> None : def get_downstream ( task , level = 0 ) : print ( ( " " * level * 4 ) + str ( task ) ) level += 1 for t in task . downstream_list : get_downstream ( t , level ) for t in self . roots : get_downstream ( t )
Print an ASCII tree representation of the DAG.
Print an ASCII tree representation of the DAG .
"""Print an ASCII tree representation of the DAG."""
self