calendar_lib/calendar.py
def gen_months(self) -> List[Month]:
        """
        Initialise calendar with Month objects
        list of Month objects (with correct week/day offset)
        """
        yr = self._year
        first_day = yr._first
        months = []
        for i in range(yr._start_m, yr._end_m + 1):
            m = Month(i, first_day, yr._year)
            first_day = (first_day + m.get_len) % 7
            months.append(m)
        return months

        Initialise calendar with Month objects
        list of Month objects (with correct week/day offset)
        
Initialise calendar with Month objects
list of Month objects (with correct week/day offset)
Initialise calendar with Month objects list of Month objects ( with correct week / day offset )
def gen_months(self) -> List[Month]:
        yr = self._year
        first_day = yr._first
        months = []
        for i in range(yr._start_m, yr._end_m + 1):
            m = Month(i, first_day, yr._year)
            first_day = (first_day + m.get_len) % 7
            months.append(m)
        return months
def gen_months ( self ) -> List [ Month ] : yr = self . _year first_day = yr . _first months = [ ] for i in range ( yr . _start_m , yr . _end_m + 1 ) : m = Month ( i , first_day , yr . _year ) first_day = ( first_day + m . get_len ) % 7 months . append ( m ) return months
Initialise calendar with Month objects
list of Month objects (with correct week/day offset)
Initialise calendar with Month objects list of Month objects ( with correct week / day offset )
"""
        Initialise calendar with Month objects
        list of Month objects (with correct week/day offset)
        """
self