(content: str)
Return the lines with line number from a file.
Return the lines with line number from a file.
Return the lines with line number from a file .
def get_lines_from_file(content: str) -> Iterable[Line]:
    """Return the lines with line number from a file."""
    for line_count, line_content in enumerate(content.split("\n")):
        yield Line(
            content=line_content, category=LineCategory.data, pre_index=line_count + 1
        )
def get_lines_from_file ( content : str ) -> Iterable [ Line ] : for line_count , line_content in enumerate ( content . split ( "\n" ) ) : yield Line ( content = line_content , category = LineCategory . data , pre_index = line_count + 1 )