code: def isworkday(self, date):
          
          date = parsefun(date)
          return self.weekdaymap[date.weekday()].isworkday
docs: Check if a given date is a work date, ignoring holidays.
  
          Args:
              date (date, datetime or str): Date to be checked.
  
          Returns:
              bool: True if the date is a work date, False otherwise.