parameters: (base, other)
return_statement: return list(other_holidays.values())
docstring: Merge holiday calendars together. The base calendar
          will take precedence to other. The merge will be done
          based on each holiday's name.
  
          Parameters
          ----------
          base : AbstractHolidayCalendar
            instance/subclass or array of Holiday objects
          other : AbstractHolidayCalendar
            instance/subclass or array of Holiday objects
docstring_summary: Merge holiday calendars together. The base calendar
          will take precedence to other. The merge will be done
          based on each holiday's name.
docstring_tokens: Merge holiday calendars together . The base calendar will take precedence to other . The merge will be done based on each holiday s name .
function: def merge_class(base, other):
          """
          Merge holiday calendars together. The base calendar
          will take precedence to other. The merge will be done
          based on each holiday's name.
  
          Parameters
          ----------
          base : AbstractHolidayCalendar
            instance/subclass or array of Holiday objects
          other : AbstractHolidayCalendar
            instance/subclass or array of Holiday objects
          """
          try:
              other = other.rules
          except AttributeError:
              pass
  
          if not isinstance(other, list):
              other = [other]
          other_holidays = {holiday.name: holiday for holiday in other}
  
          try:
              base = base.rules
          except AttributeError:
              pass
  
          if not isinstance(base, list):
              base = [base]
          base_holidays = {holiday.name: holiday for holiday in base}
  
          other_holidays.update(base_holidays)
          return list(other_holidays.values())
function_tokens: def merge_class ( base , other ) : try : other = other . rules except AttributeError : pass if not isinstance ( other , list ) : other = [ other ] other_holidays = { holiday . name : holiday for holiday in other } try : base = base . rules except AttributeError : pass if not isinstance ( base , list ) : base = [ base ] base_holidays = { holiday . name : holiday for holiday in base } other_holidays . update ( base_holidays ) return list ( other_holidays . values ( ) )