def _validate_year(year):
    """ Validate year is given as an int"""
    if not isinstance(year, int):
        raise TypeError("Year must give of type `int`.")
    if year <= 1900:
        raise ValueError("Please enter a year after 1990.")

    return year