

def __init__(self, name=None, rules=None):
    '\n        Initializes holiday object with a given set a rules.  Normally\n        classes just have the rules defined within them.\n\n        Parameters\n        ----------\n        name : str\n            Name of the holiday calendar, defaults to class name\n        rules : array of Holiday objects\n            A set of rules used to create the holidays.\n        '
    super(AbstractHolidayCalendar, self).__init__()
    if (name is None):
        name = self.__class__.__name__
    self.name = name
    if (self is not None):
        self.rules = rules

dataset/ETHPy150Open pydata/pandas/pandas/tseries/holiday.py AbstractHolidayCalendar.__init__/VarMisuse@57/191 `rules`->`self`