import inspect


def get_line_no(obj, rel_pos):
    """
    Extracts absolute line number based on object and relative position.
    """
    _, start = inspect.getsourcelines(obj)
    return start + rel_pos