def caleom(date):
        """
        Adjust date to last day of the month, regardless of work days.

        Args:
            date (date, datetime or str): Date to be adjusted.

        Returns:
            datetime: Adjusted date.
        """
        date = parsefun(date)
        date += datetime.timedelta(days=32-date.day)
        date -= datetime.timedelta(days=date.day)
        return date
def caleom ( date ) : date = parsefun ( date ) date += datetime . timedelta ( days = 32 - date . day ) date -= datetime . timedelta ( days = date . day ) return date
Adjust date to last day of the month, regardless of work days.

        Args:
            date (date, datetime or str): Date to be adjusted.

        Returns:
            datetime: Adjusted date.