trees.py
def _build_list(self) -> Tuple[List[Tuple[tuple, str]],
                                   List[Tuple[tuple, str]]]:
        """
        Return a tuple of two lists: lst_x, which records all the points
        and name from self in order from smallest to biggest, based on x, and
        lst_y, which records all the points and name from self in order from
        smallest to biggest, based on x.
        """
        lst_x, lst_y = [], []
        if self._lt:
            lst_x.extend(self._lt._build_list()[0])
            lst_y.extend(self._lt._build_list()[1])
        lst_x.append((self._point, self._name))
        lst_y.append(((self._point[1], self._point[0]), self._name))
        if self._gt:
            lst_x.extend(self._gt._build_list()[0])
            lst_y.extend(self._gt._build_list()[1])
        return lst_x, lst_y

        Return a tuple of two lists: lst_x, which records all the points
        and name from self in order from smallest to biggest, based on x, and
        lst_y, which records all the points and name from self in order from
        smallest to biggest, based on x.
        
Return a tuple of two lists: lst_x, which records all the points
and name from self in order from smallest to biggest, based on x, and
lst_y, which records all the points and name from self in order from
smallest to biggest, based on x.
Return a tuple of two lists : lst_x which records all the points and name from self in order from smallest to biggest based on x and lst_y which records all the points and name from self in order from smallest to biggest based on x .
def _build_list(self) -> Tuple[List[Tuple[tuple, str]],
                                   List[Tuple[tuple, str]]]:
        lst_x, lst_y = [], []
        if self._lt:
            lst_x.extend(self._lt._build_list()[0])
            lst_y.extend(self._lt._build_list()[1])
        lst_x.append((self._point, self._name))
        lst_y.append(((self._point[1], self._point[0]), self._name))
        if self._gt:
            lst_x.extend(self._gt._build_list()[0])
            lst_y.extend(self._gt._build_list()[1])
        return lst_x, lst_y
def _build_list ( self ) -> Tuple [ List [ Tuple [ tuple , str ] ] , List [ Tuple [ tuple , str ] ] ] : lst_x , lst_y = [ ] , [ ] if self . _lt : lst_x . extend ( self . _lt . _build_list ( ) [ 0 ] ) lst_y . extend ( self . _lt . _build_list ( ) [ 1 ] ) lst_x . append ( ( self . _point , self . _name ) ) lst_y . append ( ( ( self . _point [ 1 ] , self . _point [ 0 ] ) , self . _name ) ) if self . _gt : lst_x . extend ( self . _gt . _build_list ( ) [ 0 ] ) lst_y . extend ( self . _gt . _build_list ( ) [ 1 ] ) return lst_x , lst_y
Return a tuple of two lists: lst_x, which records all the points
and name from self in order from smallest to biggest, based on x, and
lst_y, which records all the points and name from self in order from
smallest to biggest, based on x.
Return a tuple of two lists : lst_x which records all the points and name from self in order from smallest to biggest based on x and lst_y which records all the points and name from self in order from smallest to biggest based on x .
"""
        Return a tuple of two lists: lst_x, which records all the points
        and name from self in order from smallest to biggest, based on x, and
        lst_y, which records all the points and name from self in order from
        smallest to biggest, based on x.
        """
self