holidays 0.68__py3-none-any.whl → 0.70__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 (254) hide show
  1. holidays/__init__.py +1 -1
  2. holidays/calendars/__init__.py +2 -1
  3. holidays/calendars/balinese_saka.py +112 -0
  4. holidays/calendars/buddhist.py +1 -1
  5. holidays/calendars/chinese.py +1 -1
  6. holidays/calendars/custom.py +1 -1
  7. holidays/calendars/gregorian.py +1 -1
  8. holidays/calendars/hebrew.py +1 -1
  9. holidays/calendars/hindu.py +866 -2
  10. holidays/calendars/islamic.py +161 -1
  11. holidays/calendars/julian.py +1 -1
  12. holidays/calendars/julian_revised.py +1 -1
  13. holidays/calendars/persian.py +1 -1
  14. holidays/calendars/sinhala.py +1 -1
  15. holidays/calendars/thai.py +309 -257
  16. holidays/constants.py +3 -1
  17. holidays/countries/__init__.py +7 -1
  18. holidays/countries/afghanistan.py +17 -7
  19. holidays/countries/albania.py +16 -7
  20. holidays/countries/algeria.py +14 -10
  21. holidays/countries/american_samoa.py +12 -6
  22. holidays/countries/andorra.py +5 -4
  23. holidays/countries/angola.py +15 -14
  24. holidays/countries/antigua_and_barbuda.py +145 -0
  25. holidays/countries/argentina.py +787 -169
  26. holidays/countries/armenia.py +5 -6
  27. holidays/countries/aruba.py +11 -9
  28. holidays/countries/australia.py +21 -20
  29. holidays/countries/austria.py +3 -1
  30. holidays/countries/azerbaijan.py +30 -19
  31. holidays/countries/bahamas.py +13 -11
  32. holidays/countries/bahrain.py +14 -7
  33. holidays/countries/bangladesh.py +5 -4
  34. holidays/countries/barbados.py +11 -9
  35. holidays/countries/belarus.py +15 -15
  36. holidays/countries/belgium.py +8 -6
  37. holidays/countries/belize.py +7 -6
  38. holidays/countries/bolivia.py +12 -11
  39. holidays/countries/bosnia_and_herzegovina.py +21 -11
  40. holidays/countries/botswana.py +8 -6
  41. holidays/countries/brazil.py +8 -7
  42. holidays/countries/brunei.py +56 -62
  43. holidays/countries/bulgaria.py +9 -10
  44. holidays/countries/burkina_faso.py +14 -5
  45. holidays/countries/burundi.py +17 -12
  46. holidays/countries/cambodia.py +15 -24
  47. holidays/countries/cameroon.py +16 -7
  48. holidays/countries/canada.py +13 -12
  49. holidays/countries/chad.py +15 -6
  50. holidays/countries/chile.py +29 -28
  51. holidays/countries/china.py +39 -38
  52. holidays/countries/colombia.py +15 -20
  53. holidays/countries/congo.py +6 -7
  54. holidays/countries/costa_rica.py +11 -10
  55. holidays/countries/croatia.py +8 -5
  56. holidays/countries/cuba.py +30 -27
  57. holidays/countries/curacao.py +6 -4
  58. holidays/countries/cyprus.py +4 -5
  59. holidays/countries/czechia.py +7 -6
  60. holidays/countries/denmark.py +5 -6
  61. holidays/countries/djibouti.py +11 -3
  62. holidays/countries/dominica.py +18 -16
  63. holidays/countries/dominican_republic.py +6 -4
  64. holidays/countries/ecuador.py +5 -4
  65. holidays/countries/egypt.py +10 -11
  66. holidays/countries/el_salvador.py +6 -5
  67. holidays/countries/estonia.py +3 -1
  68. holidays/countries/eswatini.py +6 -4
  69. holidays/countries/ethiopia.py +26 -11
  70. holidays/countries/fiji.py +183 -0
  71. holidays/countries/finland.py +11 -10
  72. holidays/countries/france.py +6 -9
  73. holidays/countries/gabon.py +17 -8
  74. holidays/countries/georgia.py +7 -7
  75. holidays/countries/germany.py +11 -11
  76. holidays/countries/ghana.py +14 -6
  77. holidays/countries/greece.py +4 -5
  78. holidays/countries/greenland.py +5 -6
  79. holidays/countries/guam.py +12 -6
  80. holidays/countries/guatemala.py +7 -9
  81. holidays/countries/guernsey.py +37 -34
  82. holidays/countries/guinea.py +182 -0
  83. holidays/countries/haiti.py +6 -5
  84. holidays/countries/honduras.py +8 -4
  85. holidays/countries/hongkong.py +49 -60
  86. holidays/countries/hungary.py +26 -23
  87. holidays/countries/iceland.py +5 -4
  88. holidays/countries/india.py +494 -174
  89. holidays/countries/indonesia.py +68 -108
  90. holidays/countries/iran.py +18 -9
  91. holidays/countries/ireland.py +5 -4
  92. holidays/countries/isle_of_man.py +2 -2
  93. holidays/countries/israel.py +4 -5
  94. holidays/countries/italy.py +5 -4
  95. holidays/countries/ivory_coast.py +156 -0
  96. holidays/countries/jamaica.py +6 -4
  97. holidays/countries/japan.py +5 -5
  98. holidays/countries/jersey.py +29 -26
  99. holidays/countries/jordan.py +13 -6
  100. holidays/countries/kazakhstan.py +72 -51
  101. holidays/countries/kenya.py +28 -18
  102. holidays/countries/kuwait.py +14 -7
  103. holidays/countries/kyrgyzstan.py +11 -6
  104. holidays/countries/laos.py +21 -29
  105. holidays/countries/latvia.py +7 -5
  106. holidays/countries/lesotho.py +6 -5
  107. holidays/countries/liechtenstein.py +5 -5
  108. holidays/countries/lithuania.py +4 -5
  109. holidays/countries/luxembourg.py +5 -3
  110. holidays/countries/macau.py +480 -0
  111. holidays/countries/madagascar.py +5 -4
  112. holidays/countries/malawi.py +6 -4
  113. holidays/countries/malaysia.py +30 -18
  114. holidays/countries/maldives.py +14 -7
  115. holidays/countries/malta.py +10 -19
  116. holidays/countries/marshall_islands.py +6 -4
  117. holidays/countries/mauritania.py +13 -6
  118. holidays/countries/mexico.py +8 -7
  119. holidays/countries/moldova.py +6 -4
  120. holidays/countries/monaco.py +6 -4
  121. holidays/countries/montenegro.py +16 -7
  122. holidays/countries/morocco.py +13 -8
  123. holidays/countries/mozambique.py +3 -1
  124. holidays/countries/namibia.py +7 -5
  125. holidays/countries/netherlands.py +6 -6
  126. holidays/countries/new_zealand.py +3 -1
  127. holidays/countries/nicaragua.py +6 -5
  128. holidays/countries/nigeria.py +13 -5
  129. holidays/countries/north_macedonia.py +13 -5
  130. holidays/countries/northern_mariana_islands.py +12 -6
  131. holidays/countries/norway.py +15 -15
  132. holidays/countries/pakistan.py +48 -18
  133. holidays/countries/palau.py +13 -11
  134. holidays/countries/panama.py +9 -8
  135. holidays/countries/papua_new_guinea.py +25 -21
  136. holidays/countries/paraguay.py +10 -9
  137. holidays/countries/peru.py +4 -5
  138. holidays/countries/philippines.py +32 -18
  139. holidays/countries/poland.py +7 -6
  140. holidays/countries/portugal.py +13 -15
  141. holidays/countries/puerto_rico.py +12 -6
  142. holidays/countries/qatar.py +172 -0
  143. holidays/countries/romania.py +6 -4
  144. holidays/countries/russia.py +6 -4
  145. holidays/countries/saint_kitts_and_nevis.py +24 -22
  146. holidays/countries/saint_lucia.py +8 -7
  147. holidays/countries/samoa.py +7 -6
  148. holidays/countries/san_marino.py +4 -3
  149. holidays/countries/saudi_arabia.py +15 -15
  150. holidays/countries/serbia.py +3 -4
  151. holidays/countries/seychelles.py +22 -26
  152. holidays/countries/singapore.py +33 -38
  153. holidays/countries/slovakia.py +6 -5
  154. holidays/countries/slovenia.py +7 -6
  155. holidays/countries/south_africa.py +8 -6
  156. holidays/countries/south_korea.py +25 -32
  157. holidays/countries/spain.py +31 -24
  158. holidays/countries/sri_lanka.py +52 -42
  159. holidays/countries/sweden.py +20 -19
  160. holidays/countries/switzerland.py +6 -5
  161. holidays/countries/taiwan.py +230 -31
  162. holidays/countries/tanzania.py +34 -27
  163. holidays/countries/thailand.py +134 -142
  164. holidays/countries/timor_leste.py +38 -17
  165. holidays/countries/tonga.py +46 -42
  166. holidays/countries/tunisia.py +9 -3
  167. holidays/countries/turkey.py +17 -9
  168. holidays/countries/tuvalu.py +12 -11
  169. holidays/countries/ukraine.py +54 -54
  170. holidays/countries/united_arab_emirates.py +43 -30
  171. holidays/countries/united_kingdom.py +7 -6
  172. holidays/countries/united_states.py +130 -86
  173. holidays/countries/united_states_minor_outlying_islands.py +12 -6
  174. holidays/countries/united_states_virgin_islands.py +12 -6
  175. holidays/countries/uruguay.py +10 -9
  176. holidays/countries/uzbekistan.py +16 -7
  177. holidays/countries/vanuatu.py +7 -5
  178. holidays/countries/vatican_city.py +16 -15
  179. holidays/countries/venezuela.py +11 -14
  180. holidays/countries/vietnam.py +15 -11
  181. holidays/countries/zambia.py +8 -6
  182. holidays/countries/zimbabwe.py +6 -4
  183. holidays/deprecations/v1_incompatibility.py +1 -1
  184. holidays/financial/__init__.py +1 -1
  185. holidays/financial/brasil_bolsa_balcao.py +14 -13
  186. holidays/financial/european_central_bank.py +7 -6
  187. holidays/financial/ice_futures_europe.py +7 -6
  188. holidays/financial/ny_stock_exchange.py +13 -10
  189. holidays/groups/__init__.py +2 -1
  190. holidays/groups/balinese_saka.py +45 -0
  191. holidays/groups/buddhist.py +1 -1
  192. holidays/groups/chinese.py +69 -4
  193. holidays/groups/christian.py +1 -1
  194. holidays/groups/custom.py +1 -1
  195. holidays/groups/eastern.py +1 -1
  196. holidays/groups/hebrew.py +1 -1
  197. holidays/groups/hindu.py +256 -1
  198. holidays/groups/international.py +1 -1
  199. holidays/groups/islamic.py +17 -3
  200. holidays/groups/persian.py +1 -1
  201. holidays/groups/sinhala.py +1 -1
  202. holidays/groups/thai.py +1 -7
  203. holidays/helpers.py +1 -1
  204. holidays/holiday_base.py +410 -273
  205. holidays/ical.py +228 -0
  206. holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
  207. holidays/locale/de/LC_MESSAGES/PL.mo +0 -0
  208. holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
  209. holidays/locale/en_HK/LC_MESSAGES/HK.mo +0 -0
  210. holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
  211. holidays/locale/en_MO/LC_MESSAGES/MO.mo +0 -0
  212. holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
  213. holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
  214. holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
  215. holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
  216. holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
  217. holidays/locale/en_US/LC_MESSAGES/HK.mo +0 -0
  218. holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
  219. holidays/locale/en_US/LC_MESSAGES/MO.mo +0 -0
  220. holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
  221. holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
  222. holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
  223. holidays/locale/en_US/LC_MESSAGES/TW.mo +0 -0
  224. holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
  225. holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
  226. holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
  227. holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
  228. holidays/locale/pt_MO/LC_MESSAGES/MO.mo +0 -0
  229. holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
  230. holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
  231. holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
  232. holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
  233. holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
  234. holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
  235. holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
  236. holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
  237. holidays/locale/zh_CN/LC_MESSAGES/HK.mo +0 -0
  238. holidays/locale/zh_CN/LC_MESSAGES/MO.mo +0 -0
  239. holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
  240. holidays/locale/zh_HK/LC_MESSAGES/HK.mo +0 -0
  241. holidays/locale/zh_MO/LC_MESSAGES/MO.mo +0 -0
  242. holidays/locale/zh_TW/LC_MESSAGES/TW.mo +0 -0
  243. holidays/mixins.py +2 -2
  244. holidays/observed_holiday_base.py +5 -2
  245. holidays/registry.py +7 -1
  246. holidays/utils.py +151 -151
  247. holidays/version.py +2 -2
  248. holidays-0.70.dist-info/METADATA +1404 -0
  249. {holidays-0.68.dist-info → holidays-0.70.dist-info}/RECORD +253 -222
  250. {holidays-0.68.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
  251. holidays-0.68.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +7 -2
  252. {holidays-0.68.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
  253. holidays-0.68.dist-info/METADATA +0 -1080
  254. {holidays-0.68.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -51,16 +51,19 @@ class HongKong(
51
51
  PreferredDiscretionaryHolidays,
52
52
  StaticHolidays,
53
53
  ):
54
- """
54
+ """Hong Kong holidays.
55
+
55
56
  References:
56
- - `English Wikipedia <https://en.wikipedia.org/wiki/Public_holidays_in_Hong_Kong>`_
57
- - `Chinese Wikipedia <https://zh.wikipedia.org/wiki/香港節日與公眾假期>`_
57
+ * [English Wikipedia](https://en.wikipedia.org/wiki/Public_holidays_in_Hong_Kong)
58
+ * [Chinese Wikipedia](https://zh.wikipedia.org/wiki/香港節日與公眾假期)
59
+
58
60
  Statutory Holidays:
59
- - `Section 39 of Cap. 57 Employment Ordinance <https://www.elegislation.gov.hk/hk/cap57!en-zh-Hant-HK?INDEX_CS=N&xpid=ID_1438403463460_002>`_
60
- - `Holidays for 2010-2025 <https://www.labour.gov.hk/eng/news/holidays_list.htm>`_
61
+ * [Section 39 of Cap. 57 Employment Ordinance](https://www.elegislation.gov.hk/hk/cap57!en-zh-Hant-HK?INDEX_CS=N&xpid=ID_1438403463460_002)
62
+ * [Holidays for 2010-2025](https://www.labour.gov.hk/eng/news/holidays_list.htm)
63
+
61
64
  General Holidays:
62
- - `Cap. 149 General Holidays Ordinance <https://www.elegislation.gov.hk/hk/cap149!en-zh-Hant-HK?INDEX_CS=N>`_
63
- - `Holidays for 2007–2025 <https://www.gov.hk/en/about/abouthk/holiday/index.htm>`_
65
+ * [Cap. 149 General Holidays Ordinance](https://www.elegislation.gov.hk/hk/cap149!en-zh-Hant-HK?INDEX_CS=N)
66
+ * [Holidays for 2007–2025](https://www.gov.hk/en/about/abouthk/holiday/index.htm)
64
67
  """
65
68
 
66
69
  country = "HK"
@@ -86,24 +89,24 @@ class HongKong(
86
89
  super().__init__(*args, **kwargs)
87
90
 
88
91
  def _add_mid_autumn(self) -> date:
89
- # Chinese Mid-Autumn Festival.
92
+ # Mid-Autumn Festival.
90
93
 
91
94
  mid_autumn_date = self._mid_autumn_festival
92
95
  if self._year >= 1968:
93
96
  mid_autumn_date = _timedelta(mid_autumn_date, +1)
94
- # The day following the Chinese Mid-Autumn Festival.
97
+ # The Day following Mid-Autumn Festival.
95
98
  name = tr("中秋節翌日")
96
- # The second day following the Chinese Mid-Autumn Festival.
99
+ # The Second Day following Mid-Autumn Festival.
97
100
  second_name = tr("中秋節後第二日")
98
101
  else:
99
- # Chinese Mid-Autumn Festival.
102
+ # Mid-Autumn Festival.
100
103
  name = tr("中秋節")
101
- # The day following the Chinese Mid-Autumn Festival.
104
+ # The Day following Mid-Autumn Festival.
102
105
  second_name = tr("中秋節翌日")
103
106
 
104
107
  if self._is_sunday(mid_autumn_date):
105
108
  if 1983 <= self._year <= 2010:
106
- # Chinese Mid-Autumn Festival.
109
+ # Mid-Autumn Festival.
107
110
  self._add_holiday(tr("中秋節"), _timedelta(mid_autumn_date, -1))
108
111
  else:
109
112
  self._add_holiday(second_name, _timedelta(mid_autumn_date, +1))
@@ -112,15 +115,15 @@ class HongKong(
112
115
  return mid_autumn_date
113
116
 
114
117
  def _add_lunar_new_year(self, day_three_start_year: int):
115
- # Lunar New Year's Day.
118
+ # Chinese New Year.
116
119
  name = tr("農曆年初一")
117
- # The day preceding Lunar New Year's Day.
120
+ # Chinese New Year's Eve.
118
121
  preceding_day_lunar = tr("農曆年初一的前一日")
119
- # The second day of Lunar New Year.
122
+ # The second day of Chinese New Year.
120
123
  second_day_lunar = tr("農曆年初二")
121
- # The third day of Lunar New Year.
124
+ # The third day of Chinese New Year.
122
125
  third_day_lunar = tr("農曆年初三")
123
- # The fourth day of Lunar New Year.
126
+ # The fourth day of Chinese New Year.
124
127
  fourth_day_lunar = tr("農曆年初四")
125
128
  dt_lunar_new_year = self._chinese_new_year
126
129
  if self._year >= 1983:
@@ -156,7 +159,7 @@ class HongKong(
156
159
  return None
157
160
 
158
161
  if self._year >= 1977:
159
- # The first day of January.
162
+ # New Year's Day.
160
163
  self._add_observed(self._add_new_years_day(tr("一月一日")))
161
164
 
162
165
  self._add_lunar_new_year(day_three_start_year=1977)
@@ -173,28 +176,28 @@ class HongKong(
173
176
  # Easter Monday.
174
177
  self._add_easter_monday(tr("復活節星期一"))
175
178
 
176
- # Ching Ming Festival.
179
+ # Tomb-Sweeping Day.
177
180
  self._add_observed(self._add_qingming_festival(tr("清明節")))
178
181
 
179
182
  if self._year >= 2022:
180
- # The Birthday of the Buddha.
183
+ # The Buddha's Birthday.
181
184
  self._add_observed(self._add_chinese_birthday_of_buddha(tr("佛誕")))
182
185
 
183
186
  if self._year >= 1999:
184
187
  # Labor Day.
185
188
  self._add_observed(self._add_labor_day(tr("勞動節")))
186
189
 
187
- # Tuen Ng Festival.
190
+ # Dragon Boat Festival.
188
191
  self._add_observed(self._add_dragon_boat_festival(tr("端午節")))
189
192
 
190
193
  if self._year >= 1997:
191
- # Hong Kong Special Administrative Region Establishment Day.
194
+ # Hong Kong S.A.R. Establishment Day.
192
195
  self._add_observed(self._add_holiday_jul_1(tr("香港特別行政區成立紀念日")))
193
196
 
194
197
  mid_autumn_date = self._add_mid_autumn()
195
198
 
196
199
  if self._year >= 1977:
197
- # Chung Yeung Festival.
200
+ # Double Ninth Festival.
198
201
  dt_double_ninth = self._add_double_ninth_festival(tr("重陽節"))
199
202
  self._add_observed(dt_double_ninth)
200
203
 
@@ -211,8 +214,8 @@ class HongKong(
211
214
  )
212
215
 
213
216
  if WINTER_SOLSTICE in self.preferred_discretionary_holidays:
214
- # Chinese Winter Solstice Festival.
215
- self._add_observed(self._add_holiday(tr("冬節"), self._winter_solstice_date))
217
+ # Winter Solstice.
218
+ self._add_observed(self._add_dongzhi_festival(tr("冬節")))
216
219
 
217
220
  if self._year >= 2024:
218
221
  # The first weekday after Christmas Day.
@@ -226,21 +229,21 @@ class HongKong(
226
229
  # General Holidays.
227
230
 
228
231
  if self._is_sunday(JAN, 1):
229
- # The day following the first day of January.
232
+ # The day following New Year's Day.
230
233
  self._add_new_years_day_two(tr("一月一日翌日"))
231
234
  else:
232
- # The first day of January.
235
+ # New Year's Day.
233
236
  self._add_new_years_day(tr("一月一日"))
234
237
 
235
238
  self._add_lunar_new_year(day_three_start_year=1968)
236
239
 
237
240
  if self._year >= 1968:
238
- dt_qingming = self._qingming_date
241
+ dt_qingming = self._qingming_festival
239
242
  if self._is_sunday(dt_qingming) or dt_qingming == _timedelta(self._easter_sunday, +1):
240
- # The day following Ching Ming Festival.
243
+ # The day following Tomb-Sweeping Day.
241
244
  self._add_holiday(tr("清明節翌日"), _timedelta(dt_qingming, +1))
242
245
  else:
243
- # Ching Ming Festival.
246
+ # Tomb-Sweeping Day.
244
247
  self._add_qingming_festival(tr("清明節"))
245
248
 
246
249
  # Good Friday.
@@ -257,12 +260,12 @@ class HongKong(
257
260
  self._add_easter_monday(tr("復活節星期一"))
258
261
 
259
262
  if self._year >= 1999:
260
- dt_birthday_of_buddha = self._chinese_calendar.buddha_birthday_date(self._year)[0]
263
+ dt_birthday_of_buddha = self._chinese_birthday_of_buddha
261
264
  if self._is_sunday(dt_birthday_of_buddha):
262
- # The day following the Birthday of the Buddha.
265
+ # The day following the Buddha's Birthday.
263
266
  self._add_holiday(tr("佛誕翌日"), _timedelta(dt_birthday_of_buddha, +1))
264
267
  else:
265
- # The Birthday of the Buddha.
268
+ # The Buddha's Birthday.
266
269
  self._add_chinese_birthday_of_buddha(tr("佛誕"))
267
270
 
268
271
  if self._year >= 1999:
@@ -274,31 +277,31 @@ class HongKong(
274
277
  self._add_labor_day(tr("勞動節"))
275
278
 
276
279
  if self._year >= 1968:
277
- dt_dragon_boat = self._chinese_calendar.dragon_boat_date(self._year)[0]
280
+ dt_dragon_boat = self._dragon_boat_festival
278
281
  if self._is_sunday(dt_dragon_boat):
279
- # The day following Tuen Ng Festival.
282
+ # The day following Dragon Boat Festival.
280
283
  self._add_holiday(tr("端午節翌日"), _timedelta(dt_dragon_boat, +1))
281
284
  else:
282
- # Tuen Ng Festival.
285
+ # Dragon Boat Festival.
283
286
  self._add_dragon_boat_festival(tr("端午節"))
284
287
 
285
288
  if self._year >= 1997:
286
289
  if self._is_sunday(JUL, 1):
287
- # The day following Hong Kong Special Administrative Region Establishment Day.
290
+ # The day following Hong Kong S.A.R. Establishment Day.
288
291
  self._add_holiday_jul_2(tr("香港特別行政區成立紀念日翌日"))
289
292
  else:
290
- # Hong Kong Special Administrative Region Establishment Day.
293
+ # Hong Kong S.A.R. Establishment Day.
291
294
  self._add_holiday_jul_1(tr("香港特別行政區成立紀念日"))
292
295
 
293
296
  mid_autumn_date = self._add_mid_autumn()
294
297
 
295
298
  if self._year >= 1968:
296
- dt_double_ninth = self._chinese_calendar.double_ninth_date(self._year)[0]
299
+ dt_double_ninth = self._double_ninth_festival
297
300
  if self._is_sunday(dt_double_ninth):
298
- # The day following Chung Yeung Festival.
301
+ # The day following Double Ninth Festival.
299
302
  self._add_holiday(tr("重陽節翌日"), _timedelta(dt_double_ninth, +1))
300
303
  else:
301
- # Chung Yeung Festival.
304
+ # Double Ninth Festival.
302
305
  self._add_double_ninth_festival(tr("重陽節"))
303
306
 
304
307
  if self._year >= 1997:
@@ -367,20 +370,6 @@ class HongKong(
367
370
  else:
368
371
  self._add_holiday_aug_30(name)
369
372
 
370
- @property
371
- def _winter_solstice_date(self) -> tuple[int, int]:
372
- # This approximation is reliable for 1952-2099 years.
373
- if (
374
- (self._year % 4 == 0 and self._year >= 1988)
375
- or (self._year % 4 == 1 and self._year >= 2021)
376
- or (self._year % 4 == 2 and self._year >= 2058)
377
- or (self._year % 4 == 3 and self._year >= 2091)
378
- ):
379
- day = 21
380
- else:
381
- day = 22
382
- return DEC, day
383
-
384
373
 
385
374
  class HK(HongKong):
386
375
  pass
@@ -400,11 +389,11 @@ class HongKongStaticHolidays:
400
389
  # Queen's Birthday.
401
390
  queen_birthday = tr("英女皇壽辰")
402
391
 
403
- # The day following Hong Kong Special Administrative Region Establishment Day.
392
+ # The day following Hong Kong S.A.R. Establishment Day.
404
393
  day_following_hksar_establishment_day = tr("香港特別行政區成立紀念日翌日")
405
394
 
406
- # The 70th anniversary day of the victory of
407
- # the Chinese people's war of resistance against Japanese aggression.
395
+ # 70th Anniversary of the Victory of the Chinese People's War of Resistance against
396
+ # Japanese Aggression and the World Anti-Fascist War.
408
397
  victory_70th_anniversary = tr("中國人民抗日戰爭勝利70周年紀念日")
409
398
 
410
399
  # Sino-Japanese War Victory Day.
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -18,28 +18,12 @@ from holidays.holiday_base import HolidayBase
18
18
 
19
19
 
20
20
  class Hungary(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
21
- """
22
- https://en.wikipedia.org/wiki/Public_holidays_in_Hungary
23
-
24
- Codification dates:
25
- - https://hvg.hu/gazdasag/20170307_Megszavaztak_munkaszuneti_nap_lett_a_nagypentek
26
- - https://www.tankonyvtar.hu/hu/tartalom/historia/92-10/ch01.html#id496839
27
-
28
- Substituted holidays official sources:
29
- - `2010 <https://njt.hu/jogszabaly/2009-20-20-1X>`_
30
- - `2011 <https://njt.hu/jogszabaly/2010-7-20-2X>`_
31
- - `2012 <https://njt.hu/jogszabaly/2011-39-20-2X>`_
32
- - `2012-2013 <https://njt.hu/jogszabaly/2012-28-20-2X>`_
33
- - `2014 <https://njt.hu/jogszabaly/2013-33-20-2X>`_
34
- - `2015 <https://njt.hu/jogszabaly/2014-28-20-2X>`_
35
- - `2016 <https://njt.hu/jogszabaly/2015-18-20-2X>`_
36
- - `2018 <https://njt.hu/jogszabaly/2017-61-B0-15>`_
37
- - `2019 <https://njt.hu/jogszabaly/2018-6-20-53>`_
38
- - `2020 <https://njt.hu/jogszabaly/2019-7-20-53>`_
39
- - `2021 <https://njt.hu/jogszabaly/2020-14-20-7Q>`_
40
- - `2022 <https://njt.hu/jogszabaly/2021-23-20-7Q>`_
41
- - `2024 <https://njt.hu/jogszabaly/2023-15-20-8P>`_
42
- - `2025 <https://njt.hu/jogszabaly/2024-11-20-2X>`_
21
+ """Hungary holidays.
22
+
23
+ References:
24
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Hungary>
25
+ * <https://hvg.hu/gazdasag/20170307_Megszavaztak_munkaszuneti_nap_lett_a_nagypentek>
26
+ * <https://www.tankonyvtar.hu/hu/tartalom/historia/92-10/ch01.html#id496839>
43
27
  """
44
28
 
45
29
  country = "HU"
@@ -130,6 +114,25 @@ class HUN(Hungary):
130
114
 
131
115
 
132
116
  class HungaryStaticHolidays:
117
+ """Hungary special holidays.
118
+
119
+ References:
120
+ * [2010](https://njt.hu/jogszabaly/2009-20-20-1X)
121
+ * [2011](https://njt.hu/jogszabaly/2010-7-20-2X)
122
+ * [2012](https://njt.hu/jogszabaly/2011-39-20-2X)
123
+ * [2012-2013](https://njt.hu/jogszabaly/2012-28-20-2X)
124
+ * [2014](https://njt.hu/jogszabaly/2013-33-20-2X)
125
+ * [2015](https://njt.hu/jogszabaly/2014-28-20-2X)
126
+ * [2016](https://njt.hu/jogszabaly/2015-18-20-2X)
127
+ * [2018](https://njt.hu/jogszabaly/2017-61-B0-15)
128
+ * [2019](https://njt.hu/jogszabaly/2018-6-20-53)
129
+ * [2020](https://njt.hu/jogszabaly/2019-7-20-53)
130
+ * [2021](https://njt.hu/jogszabaly/2020-14-20-7Q)
131
+ * [2022](https://njt.hu/jogszabaly/2021-23-20-7Q)
132
+ * [2024](https://njt.hu/jogszabaly/2023-15-20-8P)
133
+ * [2025](https://njt.hu/jogszabaly/2024-11-20-2X)
134
+ """
135
+
133
136
  # Substituted date format.
134
137
  substituted_date_format = tr("%Y. %m. %d.")
135
138
  # Day off (substituted from %s).
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -18,10 +18,11 @@ from holidays.holiday_base import HolidayBase
18
18
 
19
19
 
20
20
  class Iceland(HolidayBase, ChristianHolidays, InternationalHolidays):
21
- """
21
+ """Iceland holidays.
22
+
22
23
  References:
23
- - https://en.wikipedia.org/wiki/Public_holidays_in_Iceland
24
- - https://www.althingi.is/lagas/nuna/1971088.html
24
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Iceland>
25
+ * <https://www.althingi.is/lagas/nuna/1971088.html>
25
26
  """
26
27
 
27
28
  country = "IS"