steambird/models/coursetree.py
def all_children(self) -> List['Period']:
        """
        Method which returns all children of a Period. Recursively adds until there is no further
        child object to be found

        :return: List of Periods that are children of requested period
        """
        result = []
        for child in self.children():
            result += child.all_children()
            result.append(child)

        return sorted(result)

        Method which returns all children of a Period. Recursively adds until there is no further
        child object to be found

        :return: List of Periods that are children of requested period
        
Method which returns all children of a Period. Recursively adds until there is no further
child object to be found
Method which returns all children of a Period . Recursively adds until there is no further child object to be found
def all_children(self) -> List['Period']:
        result = []
        for child in self.children():
            result += child.all_children()
            result.append(child)
        return sorted(result)
def all_children ( self ) -> List [ 'Period' ] : result = [ ] for child in self . children ( ) : result += child . all_children ( ) result . append ( child ) return sorted ( result )
Method which returns all children of a Period.
Method which returns all children of a Period .
"""
        Method which returns all children of a Period. Recursively adds until there is no further
        child object to be found

        :return: List of Periods that are children of requested period
        """
List of Periods that are children of requested period
List of Periods that are children of requested period
self