init_holidays

WorktimeCalculator.init_holidays() Union[HolidayBase, Dict][source]

Initialize the holidays with the custom holidays from the config.

Returns the class instance from holiday, which matches the country and province given in the config and updates it with the special holidays, also given in the config

Returns

HolidayBase object for the given country and province or an empty dict.

Return type

Union[HolidayBase, Dict]