def get_rows_with_attributes_for_past_screens(
        self, past_screens: List[int]
    ) -> Tuple[List[str], List[str]]:
        """Get the rows & attributes for the array of screens as one stream
        (there is no extra new line or extra space between pages)"""
        pages = map(
            lambda screen_index: self.get_rows_with_attributes(
                screen=self.past_screens[screen_index]
            ),
            past_screens,
        )

        # join the pages together into one stream
        lines, attributes = zip(*pages)
        return (
            [line for page in lines for line in page],
            [line for page in attributes for line in page],
        )
Get the rows & attributes for the array of screens as one stream
        (there is no extra new line or extra space between pages)
src/tests/lib/screen.py