Migrate Singapore polling days.
@@ -38,10 +38,17 @@ from holidays.utils import _ChineseLuniSolar, _islamic_to_gre
class Singapore(HolidayBase):
country = "SG"
special_holidays = {
+ 2001: ((NOV, 3, "Polling Day"),),
+ 2006: ((MAY, 6, "Polling Day"),),
+ 2011: ((MAY, 7, "Polling Day"),),
+ 2015: (
# SG50 Public holiday
# Announced on 14 March 2015
# https://www.mom.gov.sg/newsroom/press-releases/2015/sg50-public-holiday-on-7-august-2015
- 2015: ((AUG, 7, "SG50 Public Holiday"),)
+ (AUG, 7, "SG50 Public Holiday"),
+ (SEP, 11, "Polling Day"),
+ ),
+ 2020: ((JUL, 10, "Polling Day"),),
}
def __init__(
@@ -285,17 +292,6 @@ class Singapore(HolidayBase):
if year <= 1968:
self[date(year, DEC, 26)] = "Boxing Day"
- # Polling Day
- dates_fixed_obs = {
- 2001: (NOV, 3),
- 2006: (MAY, 6),
- 2011: (MAY, 7),
- 2015: (SEP, 11),
- 2020: (JUL, 10),
- }
- if year in dates_fixed_obs:
- self[date(year, *dates_fixed_obs[year])] = "Polling Day"
-
# Check for holidays that fall on a Sunday and implement Section 4(2)
# of the Holidays Act: "if any day specified in the Schedule falls on
# a Sunday, the day next following not being itself a public holiday
