from typing import IO


def peek_line(f: IO) -> str:
    """
    Peek the next line of the given file obj without progressing the pointer.
    """
    pos = f.tell()
    data = f.readline()
    f.seek(pos)
    return data