def find_person(data: list, lineno: int) -> dict:
    """
    Function to find a person in a list of dictionaries representing
    individuals in the CPS
    """
    for person in data:
        if person["a_lineno"] == lineno:
            return person
    # raise an error if they're never found
    msg = f"Person with line number {lineno} not found in" f"household."
    raise ValueError(msg)