holidays 0.61__py3-none-any.whl → 0.62__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. holidays/constants.py +3 -0
  2. holidays/countries/__init__.py +1 -0
  3. holidays/countries/albania.py +2 -4
  4. holidays/countries/angola.py +2 -4
  5. holidays/countries/argentina.py +23 -1
  6. holidays/countries/armenia.py +1 -3
  7. holidays/countries/aruba.py +2 -4
  8. holidays/countries/australia.py +1 -0
  9. holidays/countries/azerbaijan.py +31 -8
  10. holidays/countries/bahamas.py +2 -4
  11. holidays/countries/barbados.py +2 -4
  12. holidays/countries/belarus.py +2 -4
  13. holidays/countries/belize.py +2 -4
  14. holidays/countries/bolivia.py +1 -3
  15. holidays/countries/botswana.py +1 -3
  16. holidays/countries/brazil.py +2 -7
  17. holidays/countries/brunei.py +2 -4
  18. holidays/countries/bulgaria.py +1 -6
  19. holidays/countries/burkina_faso.py +3 -5
  20. holidays/countries/burundi.py +1 -3
  21. holidays/countries/cambodia.py +2 -4
  22. holidays/countries/cameroon.py +2 -4
  23. holidays/countries/canada.py +7 -11
  24. holidays/countries/chad.py +2 -4
  25. holidays/countries/chile.py +1 -3
  26. holidays/countries/china.py +2 -7
  27. holidays/countries/congo.py +2 -4
  28. holidays/countries/croatia.py +1 -3
  29. holidays/countries/cuba.py +2 -4
  30. holidays/countries/curacao.py +2 -7
  31. holidays/countries/cyprus.py +1 -9
  32. holidays/countries/djibouti.py +2 -4
  33. holidays/countries/dominica.py +2 -4
  34. holidays/countries/dominican_republic.py +2 -4
  35. holidays/countries/eswatini.py +1 -4
  36. holidays/countries/ethiopia.py +1 -3
  37. holidays/countries/finland.py +5 -2
  38. holidays/countries/france.py +1 -0
  39. holidays/countries/gabon.py +2 -4
  40. holidays/countries/georgia.py +1 -3
  41. holidays/countries/germany.py +4 -56
  42. holidays/countries/ghana.py +1 -4
  43. holidays/countries/guernsey.py +328 -0
  44. holidays/countries/haiti.py +2 -8
  45. holidays/countries/hongkong.py +2 -3
  46. holidays/countries/indonesia.py +1 -3
  47. holidays/countries/iran.py +1 -3
  48. holidays/countries/ireland.py +1 -3
  49. holidays/countries/israel.py +1 -18
  50. holidays/countries/japan.py +2 -6
  51. holidays/countries/jersey.py +2 -4
  52. holidays/countries/kazakhstan.py +2 -4
  53. holidays/countries/kenya.py +1 -3
  54. holidays/countries/laos.py +2 -13
  55. holidays/countries/latvia.py +1 -3
  56. holidays/countries/lesotho.py +1 -3
  57. holidays/countries/lithuania.py +1 -3
  58. holidays/countries/madagascar.py +1 -4
  59. holidays/countries/malawi.py +1 -4
  60. holidays/countries/malaysia.py +1 -6
  61. holidays/countries/malta.py +2 -4
  62. holidays/countries/moldova.py +1 -3
  63. holidays/countries/mozambique.py +1 -3
  64. holidays/countries/namibia.py +1 -3
  65. holidays/countries/netherlands.py +1 -0
  66. holidays/countries/new_zealand.py +1 -3
  67. holidays/countries/nigeria.py +1 -3
  68. holidays/countries/pakistan.py +1 -3
  69. holidays/countries/palau.py +5 -7
  70. holidays/countries/papua_new_guinea.py +2 -4
  71. holidays/countries/paraguay.py +32 -31
  72. holidays/countries/philippines.py +1 -3
  73. holidays/countries/poland.py +1 -3
  74. holidays/countries/portugal.py +1 -0
  75. holidays/countries/russia.py +1 -3
  76. holidays/countries/saint_kitts_and_nevis.py +2 -4
  77. holidays/countries/seychelles.py +2 -4
  78. holidays/countries/slovakia.py +2 -4
  79. holidays/countries/slovenia.py +1 -3
  80. holidays/countries/south_africa.py +2 -4
  81. holidays/countries/south_korea.py +1 -6
  82. holidays/countries/switzerland.py +1 -0
  83. holidays/countries/taiwan.py +1 -3
  84. holidays/countries/tanzania.py +2 -8
  85. holidays/countries/thailand.py +6 -8
  86. holidays/countries/timor_leste.py +4 -8
  87. holidays/countries/tonga.py +2 -4
  88. holidays/countries/turkey.py +2 -7
  89. holidays/countries/ukraine.py +2 -4
  90. holidays/countries/united_kingdom.py +2 -8
  91. holidays/countries/united_states.py +1 -0
  92. holidays/countries/uruguay.py +2 -7
  93. holidays/countries/uzbekistan.py +1 -2
  94. holidays/countries/vanuatu.py +2 -4
  95. holidays/countries/vatican_city.py +1 -3
  96. holidays/countries/venezuela.py +1 -0
  97. holidays/countries/zambia.py +1 -4
  98. holidays/countries/zimbabwe.py +1 -3
  99. holidays/financial/brasil_bolsa_balcao.py +4 -6
  100. holidays/financial/european_central_bank.py +2 -5
  101. holidays/financial/ice_futures_europe.py +2 -5
  102. holidays/financial/ny_stock_exchange.py +20 -21
  103. holidays/holiday_base.py +8 -1
  104. holidays/locale/en_US/LC_MESSAGES/PY.mo +0 -0
  105. holidays/locale/en_US/LC_MESSAGES/PY.po +18 -14
  106. holidays/locale/es/LC_MESSAGES/PY.mo +0 -0
  107. holidays/locale/es/LC_MESSAGES/PY.po +17 -13
  108. holidays/locale/uk/LC_MESSAGES/PY.mo +0 -0
  109. holidays/locale/uk/LC_MESSAGES/PY.po +18 -14
  110. holidays/registry.py +1 -0
  111. holidays/version.py +1 -1
  112. {holidays-0.61.dist-info → holidays-0.62.dist-info}/METADATA +8 -3
  113. {holidays-0.61.dist-info → holidays-0.62.dist-info}/RECORD +117 -116
  114. {holidays-0.61.dist-info → holidays-0.62.dist-info}/WHEEL +1 -1
  115. {holidays-0.61.dist-info → holidays-0.62.dist-info}/AUTHORS +0 -0
  116. {holidays-0.61.dist-info → holidays-0.62.dist-info}/LICENSE +0 -0
  117. {holidays-0.61.dist-info → holidays-0.62.dist-info}/top_level.txt +0 -0
@@ -31,6 +31,8 @@ class Congo(HolidayBase, ChristianHolidays, InternationalHolidays):
31
31
  country = "CG"
32
32
  default_language = "fr"
33
33
  supported_languages = ("en_US", "fr")
34
+ # Loi N° 2-94 of 1 March 1994.
35
+ start_year = 1994
34
36
 
35
37
  def __init__(self, *args, **kwargs) -> None:
36
38
  ChristianHolidays.__init__(self)
@@ -38,10 +40,6 @@ class Congo(HolidayBase, ChristianHolidays, InternationalHolidays):
38
40
  super().__init__(*args, **kwargs)
39
41
 
40
42
  def _populate_public_holidays(self):
41
- # Loi N° 2-94 of 1 March 1994
42
- if self._year <= 1993:
43
- return None
44
-
45
43
  # New Year's Day.
46
44
  self._add_new_years_day(tr("Jour de l'An"))
47
45
 
@@ -27,6 +27,7 @@ class Croatia(HolidayBase, ChristianHolidays, InternationalHolidays):
27
27
  country = "HR"
28
28
  default_language = "hr"
29
29
  supported_languages = ("en_US", "hr", "uk")
30
+ start_year = 1992
30
31
 
31
32
  def __init__(self, *args, **kwargs):
32
33
  ChristianHolidays.__init__(self)
@@ -34,9 +35,6 @@ class Croatia(HolidayBase, ChristianHolidays, InternationalHolidays):
34
35
  super().__init__(*args, **kwargs)
35
36
 
36
37
  def _populate_public_holidays(self):
37
- if self._year <= 1991:
38
- return None
39
-
40
38
  # New Year's Day.
41
39
  self._add_new_years_day(tr("Nova godina"))
42
40
 
@@ -36,6 +36,8 @@ class Cuba(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
36
36
  # %s (observed).
37
37
  observed_label = tr("%s (observado)")
38
38
  supported_languages = ("en_US", "es", "uk")
39
+ # This calendar only works from 1959 onwards.
40
+ start_year = 1959
39
41
 
40
42
  def __init__(self, *args, **kwargs):
41
43
  ChristianHolidays.__init__(self)
@@ -44,10 +46,6 @@ class Cuba(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
44
46
  super().__init__(*args, **kwargs)
45
47
 
46
48
  def _populate_public_holidays(self):
47
- # This calendar only works from 1959 onwards.
48
- if self._year <= 1958:
49
- return None
50
-
51
49
  # Liberation Day.
52
50
  jan_1 = self._add_holiday_jan_1(tr("Triunfo de la Revolución"))
53
51
  if self._year <= 2013:
@@ -29,6 +29,8 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays):
29
29
  default_language = "pap_CW"
30
30
  supported_categories = (HALF_DAY, PUBLIC)
31
31
  supported_languages = ("en_US", "nl", "pap_CW", "uk")
32
+ # 1954: Creation of the Netherlands Antilles.
33
+ start_year = 1954
32
34
 
33
35
  def __init__(self, *args, **kwargs):
34
36
  ChristianHolidays.__init__(self)
@@ -36,10 +38,6 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays):
36
38
  super().__init__(*args, **kwargs)
37
39
 
38
40
  def _populate_public_holidays(self):
39
- # 1954: Creation of the Netherlands Antilles.
40
- if self._year <= 1953:
41
- return None
42
-
43
41
  # Aña Nobo.
44
42
  # Status: In-Use.
45
43
 
@@ -136,9 +134,6 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays):
136
134
  self._add_christmas_day_two(tr("Di dos dia di Pasku di Nasementu"))
137
135
 
138
136
  def _populate_half_day_holidays(self):
139
- if self._year <= 1953:
140
- return None
141
-
142
137
  # New Year's Eve.
143
138
  self._add_new_years_eve(tr("Vispu di Aña Nobo"))
144
139
 
@@ -31,6 +31,7 @@ class Cyprus(HolidayBase, ChristianHolidays, InternationalHolidays):
31
31
  default_language = "el"
32
32
  supported_categories = (BANK, OPTIONAL, PUBLIC)
33
33
  supported_languages = ("el", "en_CY", "en_US", "uk")
34
+ start_year = 1961
34
35
 
35
36
  def __init__(self, *args, **kwargs):
36
37
  ChristianHolidays.__init__(self, JULIAN_REVISED_CALENDAR)
@@ -38,9 +39,6 @@ class Cyprus(HolidayBase, ChristianHolidays, InternationalHolidays):
38
39
  super().__init__(*args, **kwargs)
39
40
 
40
41
  def _populate_public_holidays(self):
41
- if self._year <= 1960:
42
- return None
43
-
44
42
  # New Year's Day.
45
43
  self._add_new_years_day(tr("Πρωτοχρονιά"))
46
44
 
@@ -88,16 +86,10 @@ class Cyprus(HolidayBase, ChristianHolidays, InternationalHolidays):
88
86
  self._add_christmas_day_two(tr("Επομένη Χριστουγέννων"))
89
87
 
90
88
  def _populate_bank_holidays(self):
91
- if self._year <= 1960:
92
- return None
93
-
94
89
  # Easter Tuesday.
95
90
  self._add_easter_tuesday(tr("Τρίτη της Διακαινησίμου"))
96
91
 
97
92
  def _populate_optional_holidays(self):
98
- if self._year <= 1960:
99
- return None
100
-
101
93
  # Holy Saturday.
102
94
  self._add_holy_saturday(tr("Μεγάλο Σάββατο"))
103
95
 
@@ -24,6 +24,8 @@ class Djibouti(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHol
24
24
  estimated_label = tr("%s (estimé)")
25
25
  supported_languages = ("ar", "en_US", "fr")
26
26
  weekend = {FRI, SAT}
27
+ # On 27 June 1977, Djibouti gained independence from France.
28
+ start_year = 1978
27
29
 
28
30
  def __init__(self, *args, **kwargs):
29
31
  ChristianHolidays.__init__(self)
@@ -32,10 +34,6 @@ class Djibouti(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHol
32
34
  super().__init__(*args, **kwargs)
33
35
 
34
36
  def _populate_public_holidays(self):
35
- # On 27 June 1977, Djibouti gained independence from France.
36
- if self._year <= 1977:
37
- return None
38
-
39
37
  # New Year's Day.
40
38
  self._add_new_years_day(tr("Nouvel an"))
41
39
 
@@ -39,6 +39,8 @@ class Dominica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
39
39
 
40
40
  country = "DM"
41
41
  observed_label = "%s (observed)"
42
+ # Public Holidays Act, L.I. 12 of 1990 Amendment.
43
+ start_year = 1990
42
44
 
43
45
  def __init__(self, *args, **kwargs):
44
46
  ChristianHolidays.__init__(self)
@@ -48,10 +50,6 @@ class Dominica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
48
50
  super().__init__(*args, **kwargs)
49
51
 
50
52
  def _populate_public_holidays(self):
51
- # Public Holidays Act, L.I. 12 of 1990 Amendment.
52
- if self._year <= 1989:
53
- return None
54
-
55
53
  # New Year's Day.
56
54
  self._add_observed(self._add_new_years_day("New Year's Day"))
57
55
 
@@ -30,6 +30,8 @@ class DominicanRepublic(ObservedHolidayBase, ChristianHolidays, InternationalHol
30
30
  country = "DO"
31
31
  default_language = "es"
32
32
  supported_languages = ("en_US", "es", "uk")
33
+ # Law No. 139-97 - Holidays Dominican Republic (Jun 27, 1997).
34
+ start_year = 1998
33
35
 
34
36
  def __init__(self, *args, **kwargs):
35
37
  ChristianHolidays.__init__(self)
@@ -38,10 +40,6 @@ class DominicanRepublic(ObservedHolidayBase, ChristianHolidays, InternationalHol
38
40
  super().__init__(*args, **kwargs)
39
41
 
40
42
  def _populate_public_holidays(self):
41
- # Law No. 139-97 - Holidays Dominican Republic (Jun 27, 1997).
42
- if self._year <= 1997:
43
- return None
44
-
45
43
  # New Year's Day.
46
44
  self._add_new_years_day(tr("Año Nuevo"))
47
45
 
@@ -25,6 +25,7 @@ class Eswatini(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
25
25
 
26
26
  country = "SZ"
27
27
  observed_label = "%s (observed)"
28
+ start_year = 1939
28
29
 
29
30
  def __init__(self, *args, **kwargs):
30
31
  ChristianHolidays.__init__(self)
@@ -35,10 +36,6 @@ class Eswatini(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
35
36
  super().__init__(*args, **kwargs)
36
37
 
37
38
  def _populate_public_holidays(self):
38
- # Observed since 1939
39
- if self._year <= 1938:
40
- return None
41
-
42
39
  self._add_observed(self._add_new_years_day("New Year's Day"))
43
40
 
44
41
  self._add_good_friday("Good Friday")
@@ -31,6 +31,7 @@ class Ethiopia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHol
31
31
  # %s (estimated).
32
32
  estimated_label = tr("%s (ግምት)")
33
33
  supported_languages = ("am", "ar", "en_US")
34
+ start_year = 1898
34
35
 
35
36
  def _is_leap_year(self):
36
37
  """
@@ -49,9 +50,6 @@ class Ethiopia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHol
49
50
  super().__init__(*args, **kwargs)
50
51
 
51
52
  def _populate_public_holidays(self):
52
- if self._year <= 1897:
53
- return None
54
-
55
53
  # Christmas Day.
56
54
  self._add_christmas_day(tr("ገና"))
57
55
 
@@ -28,12 +28,14 @@ class Finland(HolidayBase, ChristianHolidays, InternationalHolidays):
28
28
  - https://en.wikipedia.org/wiki/Flag_flying_days_in_Finland#Customary_flag_days
29
29
  - https://intermin.fi/en/flag-and-arms/flag-flying-days
30
30
  - https://intermin.fi/en/flag-and-arms/flag-days/2024
31
+ - https://en.wikipedia.org/wiki/Independence_Day_(Finland)
31
32
  """
32
33
 
33
34
  country = "FI"
34
35
  default_language = "fi"
35
36
  supported_languages = ("en_US", "fi", "sv_FI", "uk")
36
37
  supported_categories = (PUBLIC, UNOFFICIAL)
38
+ start_year = 1853
37
39
 
38
40
  def __init__(self, *args, **kwargs):
39
41
  ChristianHolidays.__init__(self)
@@ -90,8 +92,9 @@ class Finland(HolidayBase, ChristianHolidays, InternationalHolidays):
90
92
  else:
91
93
  self._add_holiday_nov_1(name)
92
94
 
93
- # Independence Day.
94
- self._add_holiday_dec_6(tr("Itsenäisyyspäivä"))
95
+ if self._year >= 1917:
96
+ # Independence Day.
97
+ self._add_holiday_dec_6(tr("Itsenäisyyspäivä"))
95
98
 
96
99
  # Christmas Eve.
97
100
  self._add_christmas_eve(tr("Jouluaatto"))
@@ -62,6 +62,7 @@ class France(HolidayBase, ChristianHolidays, InternationalHolidays):
62
62
  "Saint-Martin",
63
63
  "Wallis-et-Futuna",
64
64
  )
65
+ start_year = 1801
65
66
 
66
67
  def __init__(self, *args, **kwargs):
67
68
  ChristianHolidays.__init__(self)
@@ -26,6 +26,8 @@ class Gabon(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolida
26
26
  """
27
27
 
28
28
  country = "GA"
29
+ # On 17 August 1960, Gabon gained independence from France.
30
+ start_year = 1961
29
31
 
30
32
  def __init__(self, *args, **kwargs) -> None:
31
33
  ChristianHolidays.__init__(self)
@@ -34,10 +36,6 @@ class Gabon(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolida
34
36
  super().__init__(*args, **kwargs)
35
37
 
36
38
  def _populate_public_holidays(self):
37
- # On 17 August 1960, Gabon gained independence from France.
38
- if self._year <= 1960:
39
- return None
40
-
41
39
  # New Year's Day.
42
40
  self._add_new_years_day("New Year's Day")
43
41
 
@@ -32,6 +32,7 @@ class Georgia(HolidayBase, ChristianHolidays, InternationalHolidays):
32
32
  supported_categories = (GOVERNMENT, PUBLIC)
33
33
  default_language = "ka"
34
34
  supported_languages = ("en_US", "ka", "uk")
35
+ start_year = 1991
35
36
 
36
37
  def __init__(self, *args, **kwargs):
37
38
  ChristianHolidays.__init__(self, JULIAN_CALENDAR)
@@ -40,9 +41,6 @@ class Georgia(HolidayBase, ChristianHolidays, InternationalHolidays):
40
41
  super().__init__(*args, **kwargs)
41
42
 
42
43
  def _populate_public_holidays(self):
43
- if self._year <= 1990:
44
- return None
45
-
46
44
  # New Year's Day.
47
45
  name = tr("ახალი წელი")
48
46
  self._add_new_years_day(name)
@@ -95,6 +95,7 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
95
95
  "Thüringen": "TH",
96
96
  }
97
97
  _deprecated_subdivisions = ("BYP",)
98
+ start_year = 1990
98
99
 
99
100
  def __init__(self, *args, **kwargs) -> None:
100
101
  ChristianHolidays.__init__(self)
@@ -103,9 +104,6 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
103
104
  super().__init__(*args, **kwargs)
104
105
 
105
106
  def _populate_public_holidays(self):
106
- if self._year <= 1989:
107
- return None
108
-
109
107
  if self._year >= 1991:
110
108
  # New Year's Day.
111
109
  self._add_new_years_day(tr("Neujahr"))
@@ -142,9 +140,6 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
142
140
  self._populate_subdiv_by_public_holidays()
143
141
 
144
142
  def _populate_subdiv_bb_public_holidays(self):
145
- if self._year <= 1989:
146
- return None
147
-
148
143
  if self._year >= 1991:
149
144
  # Easter Sunday.
150
145
  self._add_easter_sunday(tr("Ostersonntag"))
@@ -156,17 +151,11 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
156
151
  self._add_holiday_oct_31(tr("Reformationstag"))
157
152
 
158
153
  def _populate_subdiv_be_public_holidays(self):
159
- if self._year <= 1989:
160
- return None
161
-
162
154
  if self._year >= 2019:
163
155
  # International Women's Day.
164
156
  self._add_womens_day(tr("Internationaler Frauentag"))
165
157
 
166
158
  def _populate_subdiv_bw_public_holidays(self):
167
- if self._year <= 1989:
168
- return None
169
-
170
159
  if self._year >= 1991:
171
160
  # Epiphany.
172
161
  self._add_epiphany_day(tr("Heilige Drei Könige"))
@@ -178,9 +167,6 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
178
167
  self._add_all_saints_day(tr("Allerheiligen"))
179
168
 
180
169
  def _populate_subdiv_by_public_holidays(self):
181
- if self._year <= 1989:
182
- return None
183
-
184
170
  if self._year >= 1991:
185
171
  self._add_epiphany_day(tr("Heilige Drei Könige"))
186
172
  self._add_corpus_christi_day(tr("Fronleichnam"))
@@ -188,78 +174,49 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
188
174
  self._add_all_saints_day(tr("Allerheiligen"))
189
175
 
190
176
  def _populate_subdiv_by_catholic_holidays(self):
191
- if self._year <= 1990:
192
- return None
193
-
194
- # Assumption Day.
195
- self._add_assumption_of_mary_day(tr("Mariä Himmelfahrt"))
177
+ if self._year >= 1991:
178
+ # Assumption Day.
179
+ self._add_assumption_of_mary_day(tr("Mariä Himmelfahrt"))
196
180
 
197
181
  def _populate_subdiv_hb_public_holidays(self):
198
- if self._year <= 1989:
199
- return None
200
-
201
182
  if self._year >= 2018:
202
183
  self._add_holiday_oct_31(tr("Reformationstag"))
203
184
 
204
185
  def _populate_subdiv_he_public_holidays(self):
205
- if self._year <= 1989:
206
- return None
207
-
208
186
  if self._year >= 1991:
209
187
  self._add_corpus_christi_day(tr("Fronleichnam"))
210
188
 
211
189
  def _populate_subdiv_hh_public_holidays(self):
212
- if self._year <= 1989:
213
- return None
214
-
215
190
  if self._year >= 2018:
216
191
  self._add_holiday_oct_31(tr("Reformationstag"))
217
192
 
218
193
  def _populate_subdiv_mv_public_holidays(self):
219
- if self._year <= 1989:
220
- return None
221
-
222
194
  if self._year >= 2023:
223
195
  self._add_womens_day(tr("Internationaler Frauentag"))
224
196
 
225
197
  self._add_holiday_oct_31(tr("Reformationstag"))
226
198
 
227
199
  def _populate_subdiv_ni_public_holidays(self):
228
- if self._year <= 1989:
229
- return None
230
-
231
200
  if self._year >= 2018:
232
201
  self._add_holiday_oct_31(tr("Reformationstag"))
233
202
 
234
203
  def _populate_subdiv_nw_public_holidays(self):
235
- if self._year <= 1989:
236
- return None
237
-
238
204
  if self._year >= 1991:
239
205
  self._add_corpus_christi_day(tr("Fronleichnam"))
240
206
 
241
207
  self._add_all_saints_day(tr("Allerheiligen"))
242
208
 
243
209
  def _populate_subdiv_rp_public_holidays(self):
244
- if self._year <= 1989:
245
- return None
246
-
247
210
  if self._year >= 1991:
248
211
  self._add_corpus_christi_day(tr("Fronleichnam"))
249
212
 
250
213
  self._add_all_saints_day(tr("Allerheiligen"))
251
214
 
252
215
  def _populate_subdiv_sh_public_holidays(self):
253
- if self._year <= 1989:
254
- return None
255
-
256
216
  if self._year >= 2018:
257
217
  self._add_holiday_oct_31(tr("Reformationstag"))
258
218
 
259
219
  def _populate_subdiv_sl_public_holidays(self):
260
- if self._year <= 1989:
261
- return None
262
-
263
220
  if self._year >= 1991:
264
221
  self._add_corpus_christi_day(tr("Fronleichnam"))
265
222
  self._add_assumption_of_mary_day(tr("Mariä Himmelfahrt"))
@@ -267,27 +224,18 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
267
224
  self._add_all_saints_day(tr("Allerheiligen"))
268
225
 
269
226
  def _populate_subdiv_sn_public_holidays(self):
270
- if self._year <= 1989:
271
- return None
272
-
273
227
  self._add_holiday_oct_31(tr("Reformationstag"))
274
228
 
275
229
  if self._year >= 1995:
276
230
  self._add_holiday_1st_wed_before_nov_22(tr("Buß- und Bettag"))
277
231
 
278
232
  def _populate_subdiv_st_public_holidays(self):
279
- if self._year <= 1989:
280
- return None
281
-
282
233
  if self._year >= 1991:
283
234
  self._add_epiphany_day(tr("Heilige Drei Könige"))
284
235
 
285
236
  self._add_holiday_oct_31(tr("Reformationstag"))
286
237
 
287
238
  def _populate_subdiv_th_public_holidays(self):
288
- if self._year <= 1989:
289
- return None
290
-
291
239
  if self._year >= 2019:
292
240
  # World Children's Day.
293
241
  self._add_holiday_sep_20(tr("Weltkindertag"))
@@ -28,6 +28,7 @@ class Ghana(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Islam
28
28
  estimated_label = "%s (estimated)"
29
29
  observed_label = "%s (observed)"
30
30
  observed_estimated_label = "%s (observed, estimated)"
31
+ start_year = 1957
31
32
 
32
33
  def __init__(self, *args, **kwargs):
33
34
  ChristianHolidays.__init__(self)
@@ -37,10 +38,6 @@ class Ghana(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Islam
37
38
  super().__init__(*args, **kwargs)
38
39
 
39
40
  def _populate_public_holidays(self):
40
- # Holidays observed since 1957
41
- if self._year <= 1956:
42
- return None
43
-
44
41
  # New Year's Day
45
42
  self._add_observed(self._add_new_years_day("New Year's Day"))
46
43