docs: def from_year(cls, year):
          """
          Create ``daterange`` based on a year
  
          :param year: Year as an integer
          :return: A new ``daterange`` for the given year
  
          .. versionadded:: 0.4.0
          """
  
          first_day = date(year, 1, 1)
          return cls.from_date(first_day, period="year")