holidays 0.84__py3-none-any.whl → 0.85__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 (57) hide show
  1. holidays/__init__.py +0 -2
  2. holidays/calendars/__init__.py +0 -2
  3. holidays/constants.py +0 -2
  4. holidays/countries/__init__.py +0 -2
  5. holidays/countries/aland_islands.py +4 -4
  6. holidays/countries/american_samoa.py +4 -4
  7. holidays/countries/azerbaijan.py +2 -0
  8. holidays/countries/china.py +10 -1
  9. holidays/countries/ecuador.py +12 -4
  10. holidays/countries/french_guiana.py +4 -4
  11. holidays/countries/french_polynesia.py +4 -4
  12. holidays/countries/french_southern_territories.py +4 -4
  13. holidays/countries/guadeloupe.py +4 -4
  14. holidays/countries/guam.py +4 -4
  15. holidays/countries/marshall_islands.py +8 -6
  16. holidays/countries/martinique.py +4 -4
  17. holidays/countries/mauritania.py +2 -4
  18. holidays/countries/mayotte.py +4 -4
  19. holidays/countries/new_caledonia.py +4 -4
  20. holidays/countries/northern_mariana_islands.py +4 -4
  21. holidays/countries/puerto_rico.py +4 -4
  22. holidays/countries/reunion.py +4 -4
  23. holidays/countries/saint_barthelemy.py +4 -4
  24. holidays/countries/saint_martin.py +4 -4
  25. holidays/countries/saint_pierre_and_miquelon.py +4 -4
  26. holidays/countries/samoa.py +1 -3
  27. holidays/countries/svalbard_and_jan_mayen.py +4 -4
  28. holidays/countries/thailand.py +4 -1
  29. holidays/countries/turkey.py +7 -4
  30. holidays/countries/united_states.py +4 -0
  31. holidays/countries/united_states_minor_outlying_islands.py +4 -4
  32. holidays/countries/united_states_virgin_islands.py +4 -4
  33. holidays/countries/wallis_and_futuna.py +4 -4
  34. holidays/financial/__init__.py +1 -3
  35. holidays/financial/ice_futures_europe.py +6 -2
  36. holidays/financial/national_stock_exchange_of_india.py +141 -38
  37. holidays/groups/__init__.py +0 -2
  38. holidays/locale/en_IN/LC_MESSAGES/XNSE.mo +0 -0
  39. holidays/locale/en_US/LC_MESSAGES/EC.mo +0 -0
  40. holidays/locale/en_US/LC_MESSAGES/TR.mo +0 -0
  41. holidays/locale/en_US/LC_MESSAGES/US.mo +0 -0
  42. holidays/locale/en_US/LC_MESSAGES/XNSE.mo +0 -0
  43. holidays/locale/es/LC_MESSAGES/EC.mo +0 -0
  44. holidays/locale/hi/LC_MESSAGES/XNSE.mo +0 -0
  45. holidays/locale/th/LC_MESSAGES/US.mo +0 -0
  46. holidays/locale/tr/LC_MESSAGES/TR.mo +0 -0
  47. holidays/locale/uk/LC_MESSAGES/EC.mo +0 -0
  48. holidays/locale/uk/LC_MESSAGES/TR.mo +0 -0
  49. holidays/mixins/__init__.py +0 -2
  50. holidays/registry.py +1 -1
  51. holidays/version.py +1 -1
  52. {holidays-0.84.dist-info → holidays-0.85.dist-info}/METADATA +2 -2
  53. {holidays-0.84.dist-info → holidays-0.85.dist-info}/RECORD +57 -57
  54. {holidays-0.84.dist-info → holidays-0.85.dist-info}/licenses/CONTRIBUTORS +2 -0
  55. {holidays-0.84.dist-info → holidays-0.85.dist-info}/WHEEL +0 -0
  56. {holidays-0.84.dist-info → holidays-0.85.dist-info}/licenses/LICENSE +0 -0
  57. {holidays-0.84.dist-info → holidays-0.85.dist-info}/top_level.txt +0 -0
holidays/__init__.py CHANGED
@@ -10,8 +10,6 @@
10
10
  # Website: https://github.com/vacanza/holidays
11
11
  # License: MIT (see LICENSE file)
12
12
 
13
- # ruff: noqa: F403
14
-
15
13
  from holidays.constants import *
16
14
  from holidays.holiday_base import *
17
15
  from holidays.registry import EntityLoader
@@ -10,8 +10,6 @@
10
10
  # Website: https://github.com/vacanza/holidays
11
11
  # License: MIT (see LICENSE file)
12
12
 
13
- # ruff: noqa: F401
14
-
15
13
  from holidays.calendars.balinese_saka import _BalineseSakaLunar
16
14
  from holidays.calendars.buddhist import _BuddhistLunisolar, _CustomBuddhistHolidays
17
15
  from holidays.calendars.burmese import _BurmeseLunisolar
holidays/constants.py CHANGED
@@ -10,8 +10,6 @@
10
10
  # Website: https://github.com/vacanza/holidays
11
11
  # License: MIT (see LICENSE file)
12
12
 
13
- # ruff: noqa: F401
14
-
15
13
  from holidays.calendars.gregorian import (
16
14
  JAN,
17
15
  FEB,
@@ -10,8 +10,6 @@
10
10
  # Website: https://github.com/vacanza/holidays
11
11
  # License: MIT (see LICENSE file)
12
12
 
13
- # ruff: noqa: F401
14
-
15
13
  from holidays.countries.afghanistan import Afghanistan, AF, AFG
16
14
  from holidays.countries.aland_islands import AlandIslands, AX, ALA, HolidaysAX
17
15
  from holidays.countries.albania import Albania, AL, ALB
@@ -14,7 +14,7 @@ from holidays.countries.finland import Finland
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysAX(ChildEntity, Finland):
17
+ class AlandIslands(ChildEntity, Finland):
18
18
  """Åland Islands holidays.
19
19
 
20
20
  Alias of a Finnish subdivision that is also officially assigned
@@ -35,13 +35,13 @@ class HolidaysAX(ChildEntity, Finland):
35
35
  start_year = 1921
36
36
 
37
37
 
38
- class AlandIslands(HolidaysAX):
38
+ class HolidaysAX(AlandIslands):
39
39
  pass
40
40
 
41
41
 
42
- class AX(HolidaysAX):
42
+ class AX(AlandIslands):
43
43
  pass
44
44
 
45
45
 
46
- class ALA(HolidaysAX):
46
+ class ALA(AlandIslands):
47
47
  pass
@@ -14,7 +14,7 @@ from holidays.countries.united_states import UnitedStates
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysAS(ChildEntity, UnitedStates):
17
+ class AmericanSamoa(ChildEntity, UnitedStates):
18
18
  """American Samoa holidays.
19
19
 
20
20
  Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
@@ -27,13 +27,13 @@ class HolidaysAS(ChildEntity, UnitedStates):
27
27
  start_year = 1901
28
28
 
29
29
 
30
- class AmericanSamoa(HolidaysAS):
30
+ class HolidaysAS(AmericanSamoa):
31
31
  pass
32
32
 
33
33
 
34
- class AS(HolidaysAS):
34
+ class AS(AmericanSamoa):
35
35
  pass
36
36
 
37
37
 
38
- class ASM(HolidaysAS):
38
+ class ASM(AmericanSamoa):
39
39
  pass
@@ -242,6 +242,7 @@ class AzerbaijanStaticHolidays:
242
242
  * <https://web.archive.org/web/20241015224204/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8332>
243
243
  * <https://web.archive.org/web/20250410132503/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8449>
244
244
  * <https://web.archive.org/web/20250216200846/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8623>
245
+ * <https://web.archive.org/web/20250711211545/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8864>
245
246
 
246
247
  Special holidays references:
247
248
  * <https://web.archive.org/web/20250421013220/https://www.msk.gov.az/en/elections/pages/municipal-elections/belediyye-29-01-2025>
@@ -308,6 +309,7 @@ class AzerbaijanStaticHolidays:
308
309
  2025: (
309
310
  (JAN, 3, DEC, 29, 2024),
310
311
  (JAN, 29, municipal_elections),
312
+ (JUN, 27, JUN, 21),
311
313
  ),
312
314
  }
313
315
 
@@ -24,8 +24,9 @@ class China(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays,
24
24
  References:
25
25
  * <https://en.wikipedia.org/wiki/Public_holidays_in_China>
26
26
  * [Festivals and Public Holidays](https://zh.wikipedia.org/wiki/中华人民共和国节日与公众假期)
27
- * [2024 changes (Order #795)](https://web.archive.org/web/20250228151847/https://www.gov.cn/zhengce/content/202411/content_6986380.htm)
27
+ * [2026](https://web.archive.org/web/20251111205945/https://www.gov.cn/zhengce/content/202511/content_7047090.htm)
28
28
  * [2025](https://web.archive.org/web/20250424041657/https://www.gov.cn/zhengce/content/202411/content_6986382.htm)
29
+ * [2024 changes (Order #795)](https://web.archive.org/web/20250228151847/https://www.gov.cn/zhengce/content/202411/content_6986380.htm)
29
30
  * [2024](https://web.archive.org/web/20250227033646/https://www.gov.cn/zhengce/content/202310/content_6911527.htm)
30
31
  * [2023](https://web.archive.org/web/20250414125053/https://www.gov.cn/gongbao/content/2023/content_5736714.htm)
31
32
  * [2022](https://web.archive.org/web/20250413071341/http://www.gov.cn/gongbao/content/2021/content_5651728.htm)
@@ -452,6 +453,14 @@ class ChinaStaticHolidays:
452
453
  (OCT, 7, SEP, 28), # National Day
453
454
  (OCT, 8, OCT, 11), # National Day
454
455
  ),
456
+ 2026: (
457
+ (JAN, 2, JAN, 4), # New Year's Day
458
+ (FEB, 20, FEB, 14), # Spring Festival
459
+ (FEB, 23, FEB, 28), # Spring Festival
460
+ (MAY, 5, MAY, 9), # Labor Day
461
+ (OCT, 6, SEP, 20), # National Day
462
+ (OCT, 7, OCT, 10), # National Day
463
+ ),
455
464
  }
456
465
 
457
466
  special_public_holidays_observed = {
@@ -19,6 +19,7 @@ from holidays.observed_holiday_base import (
19
19
  WED_TO_NEXT_FRI,
20
20
  SAT_TO_PREV_FRI,
21
21
  SUN_TO_NEXT_MON,
22
+ SUN_TO_NEXT_TUE,
22
23
  WED_THU_TO_NEXT_FRI,
23
24
  )
24
25
 
@@ -29,6 +30,11 @@ class Ecuador(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
29
30
  References:
30
31
  * <https://en.wikipedia.org/wiki/Public_holidays_in_Ecuador>
31
32
  * [Código del Trabajo](https://web.archive.org/web/20250428092005/https://biblioteca.defensoria.gob.ec/bitstream/37000/3364/1/Código%20de%20Trabajo%20(04-11-2021).pdf)
33
+ * [2018](https://web.archive.org/web/20181231193947/https://www.turismo.gob.ec/wp-content/uploads/2018/06/CALENDARIO-FERIADOS2018.pdf)
34
+ * [2019](https://web.archive.org/web/20220707173738/https://www.turismo.gob.ec/wp-content/uploads/2019/01/FERIADOS-2019.pdf)
35
+ * [2020-2021](https://web.archive.org/web/20210425014244/https://www.turismo.gob.ec/wp-content/uploads/2020/03/CALENDARIO-DE-FERIADOS.pdf)
36
+ * [2022](https://web.archive.org/web/20220127234055/https://www.turismo.gob.ec/wp-content/uploads/2022/01/FERIADOS-NACIONALES_2022.pdf)
37
+ * [2023-2025](https://web.archive.org/web/20250806025223/https://www.turismo.gob.ec/wp-content/uploads/2023/12/CALENDARIO-FERIADOS-2023-2025-06-12-2022-.pdf)
32
38
  """
33
39
 
34
40
  country = "EC"
@@ -84,19 +90,21 @@ class Ecuador(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
84
90
 
85
91
  self._add_observed(
86
92
  # All Souls' Day.
87
- self._add_all_souls_day(tr("Día de los Difuntos")),
88
- rule=TUE_TO_PREV_MON + WED_TO_NEXT_FRI + SAT_TO_PREV_FRI, # Not observed the next day.
93
+ self._add_all_souls_day(tr("Día de Difuntos")),
94
+ # Not observed the next day.
95
+ rule=TUE_TO_PREV_MON + WED_TO_NEXT_FRI + SAT_TO_PREV_FRI + SUN_TO_NEXT_TUE,
89
96
  )
90
97
 
91
98
  self._add_observed(
92
99
  # Independence of Cuenca.
93
100
  self._add_holiday_nov_3(tr("Independencia de Cuenca")),
94
- rule=WED_THU_TO_NEXT_FRI + SUN_TO_NEXT_MON, # Not observed the previous day.
101
+ # Not observed the previous day.
102
+ rule=SUN_TO_NEXT_MON,
95
103
  )
96
104
 
97
105
  self._add_observed(
98
106
  # Christmas Day.
99
- self._add_christmas_day(tr("Día de Navidad")),
107
+ self._add_christmas_day(tr("Navidad")),
100
108
  rule=SAT_TO_PREV_FRI + SUN_TO_NEXT_MON,
101
109
  )
102
110
 
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysGF(ChildEntity, France):
17
+ class FrenchGuiana(ChildEntity, France):
18
18
  """French Guiana holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -32,13 +32,13 @@ class HolidaysGF(ChildEntity, France):
32
32
  start_year = 1815
33
33
 
34
34
 
35
- class FrenchGuiana(HolidaysGF):
35
+ class HolidaysGF(FrenchGuiana):
36
36
  pass
37
37
 
38
38
 
39
- class GF(HolidaysGF):
39
+ class GF(FrenchGuiana):
40
40
  pass
41
41
 
42
42
 
43
- class GUF(HolidaysGF):
43
+ class GUF(FrenchGuiana):
44
44
  pass
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysPF(ChildEntity, France):
17
+ class FrenchPolynesia(ChildEntity, France):
18
18
  """French Polynesia holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -31,13 +31,13 @@ class HolidaysPF(ChildEntity, France):
31
31
  start_year = 1881
32
32
 
33
33
 
34
- class FrenchPolynesia(HolidaysPF):
34
+ class HolidaysPF(FrenchPolynesia):
35
35
  pass
36
36
 
37
37
 
38
- class PF(HolidaysPF):
38
+ class PF(FrenchPolynesia):
39
39
  pass
40
40
 
41
41
 
42
- class PYF(HolidaysPF):
42
+ class PYF(FrenchPolynesia):
43
43
  pass
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysTF(ChildEntity, France):
17
+ class FrenchSouthernTerritories(ChildEntity, France):
18
18
  """French Southern Territories holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -36,13 +36,13 @@ class HolidaysTF(ChildEntity, France):
36
36
  start_year = 1956
37
37
 
38
38
 
39
- class FrenchSouthernTerritories(HolidaysTF):
39
+ class HolidaysTF(FrenchSouthernTerritories):
40
40
  pass
41
41
 
42
42
 
43
- class TF(HolidaysTF):
43
+ class TF(FrenchSouthernTerritories):
44
44
  pass
45
45
 
46
46
 
47
- class ATF(HolidaysTF):
47
+ class ATF(FrenchSouthernTerritories):
48
48
  pass
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysGP(ChildEntity, France):
17
+ class Guadeloupe(ChildEntity, France):
18
18
  """Guadeloupe holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -32,13 +32,13 @@ class HolidaysGP(ChildEntity, France):
32
32
  start_year = 1815
33
33
 
34
34
 
35
- class Guadeloupe(HolidaysGP):
35
+ class HolidaysGP(Guadeloupe):
36
36
  pass
37
37
 
38
38
 
39
- class GP(HolidaysGP):
39
+ class GP(Guadeloupe):
40
40
  pass
41
41
 
42
42
 
43
- class GLP(HolidaysGP):
43
+ class GLP(Guadeloupe):
44
44
  pass
@@ -14,7 +14,7 @@ from holidays.countries.united_states import UnitedStates
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysGU(ChildEntity, UnitedStates):
17
+ class Guam(ChildEntity, UnitedStates):
18
18
  """Guam holidays.
19
19
 
20
20
  Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
@@ -27,13 +27,13 @@ class HolidaysGU(ChildEntity, UnitedStates):
27
27
  start_year = 1900
28
28
 
29
29
 
30
- class Guam(HolidaysGU):
30
+ class HolidaysGU(Guam):
31
31
  pass
32
32
 
33
33
 
34
- class GU(HolidaysGU):
34
+ class GU(Guam):
35
35
  pass
36
36
 
37
37
 
38
- class GUM(HolidaysGU):
38
+ class GUM(Guam):
39
39
  pass
@@ -17,7 +17,9 @@ from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHoli
17
17
  from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
18
18
 
19
19
 
20
- class HolidaysMH(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
20
+ class MarshallIslands(
21
+ ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays
22
+ ):
21
23
  """Marshall Islands holidays.
22
24
 
23
25
  References:
@@ -31,7 +33,7 @@ class HolidaysMH(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
31
33
  def __init__(self, *args, **kwargs):
32
34
  ChristianHolidays.__init__(self)
33
35
  InternationalHolidays.__init__(self)
34
- StaticHolidays.__init__(self, MarshalIslandsStaticHolidays)
36
+ StaticHolidays.__init__(self, MarshallIslandsStaticHolidays)
35
37
  kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
36
38
  super().__init__(*args, **kwargs)
37
39
 
@@ -77,19 +79,19 @@ class HolidaysMH(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
77
79
  self._add_observed(self._add_christmas_day(name))
78
80
 
79
81
 
80
- class MH(HolidaysMH):
82
+ class HolidaysMH(MarshallIslands):
81
83
  pass
82
84
 
83
85
 
84
- class MHL(HolidaysMH):
86
+ class MH(MarshallIslands):
85
87
  pass
86
88
 
87
89
 
88
- class MarshallIslands(HolidaysMH):
90
+ class MHL(MarshallIslands):
89
91
  pass
90
92
 
91
93
 
92
- class MarshalIslandsStaticHolidays:
94
+ class MarshallIslandsStaticHolidays:
93
95
  # General Election Day
94
96
  election_day = "General Election Day"
95
97
 
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysMQ(ChildEntity, France):
17
+ class Martinique(ChildEntity, France):
18
18
  """Martinique holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -32,13 +32,13 @@ class HolidaysMQ(ChildEntity, France):
32
32
  start_year = 1815
33
33
 
34
34
 
35
- class Martinique(HolidaysMQ):
35
+ class HolidaysMQ(Martinique):
36
36
  pass
37
37
 
38
38
 
39
- class MQ(HolidaysMQ):
39
+ class MQ(Martinique):
40
40
  pass
41
41
 
42
42
 
43
- class MTQ(HolidaysMQ):
43
+ class MTQ(Martinique):
44
44
  pass
@@ -39,9 +39,7 @@ class Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
39
39
  IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
40
40
  super().__init__(*args, **kwargs)
41
41
 
42
- def _populate(self, year):
43
- super()._populate(year)
44
-
42
+ def _populate_public_holidays(self):
45
43
  # New Year's Day.
46
44
  self._add_new_years_day("New Year's Day")
47
45
 
@@ -52,7 +50,7 @@ class Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
52
50
  self._add_africa_day("Africa Day")
53
51
 
54
52
  # Independence Day.
55
- if year >= 1960:
53
+ if self._year >= 1960:
56
54
  self._add_holiday_nov_28("Independence Day")
57
55
 
58
56
  # Islamic holidays.
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysYT(ChildEntity, France):
17
+ class Mayotte(ChildEntity, France):
18
18
  """Mayotte holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -32,13 +32,13 @@ class HolidaysYT(ChildEntity, France):
32
32
  start_year = 1842
33
33
 
34
34
 
35
- class Mayotte(HolidaysYT):
35
+ class HolidaysYT(Mayotte):
36
36
  pass
37
37
 
38
38
 
39
- class YT(HolidaysYT):
39
+ class YT(Mayotte):
40
40
  pass
41
41
 
42
42
 
43
- class MYT(HolidaysYT):
43
+ class MYT(Mayotte):
44
44
  pass
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysNC(ChildEntity, France):
17
+ class NewCaledonia(ChildEntity, France):
18
18
  """New Caledonia holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -31,13 +31,13 @@ class HolidaysNC(ChildEntity, France):
31
31
  start_year = 1854
32
32
 
33
33
 
34
- class NewCaledonia(HolidaysNC):
34
+ class HolidaysNC(NewCaledonia):
35
35
  pass
36
36
 
37
37
 
38
- class NC(HolidaysNC):
38
+ class NC(NewCaledonia):
39
39
  pass
40
40
 
41
41
 
42
- class NCL(HolidaysNC):
42
+ class NCL(NewCaledonia):
43
43
  pass
@@ -14,7 +14,7 @@ from holidays.countries.united_states import UnitedStates
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysMP(ChildEntity, UnitedStates):
17
+ class NorthernMarianaIslands(ChildEntity, UnitedStates):
18
18
  """Northern Mariana Islands (the) holidays.
19
19
 
20
20
  Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
@@ -27,13 +27,13 @@ class HolidaysMP(ChildEntity, UnitedStates):
27
27
  start_year = 1948
28
28
 
29
29
 
30
- class NorthernMarianaIslands(HolidaysMP):
30
+ class HolidaysMP(NorthernMarianaIslands):
31
31
  pass
32
32
 
33
33
 
34
- class MP(HolidaysMP):
34
+ class MP(NorthernMarianaIslands):
35
35
  pass
36
36
 
37
37
 
38
- class MNP(HolidaysMP):
38
+ class MNP(NorthernMarianaIslands):
39
39
  pass
@@ -14,7 +14,7 @@ from holidays.countries.united_states import UnitedStates
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysPR(ChildEntity, UnitedStates):
17
+ class PuertoRico(ChildEntity, UnitedStates):
18
18
  """Puerto Rico holidays.
19
19
 
20
20
  Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
@@ -27,13 +27,13 @@ class HolidaysPR(ChildEntity, UnitedStates):
27
27
  start_year = 1900
28
28
 
29
29
 
30
- class PuertoRico(HolidaysPR):
30
+ class HolidaysPR(PuertoRico):
31
31
  pass
32
32
 
33
33
 
34
- class PR(HolidaysPR):
34
+ class PR(PuertoRico):
35
35
  pass
36
36
 
37
37
 
38
- class PRI(HolidaysPR):
38
+ class PRI(PuertoRico):
39
39
  pass
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysRE(ChildEntity, France):
17
+ class Reunion(ChildEntity, France):
18
18
  """Réunion holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -32,13 +32,13 @@ class HolidaysRE(ChildEntity, France):
32
32
  start_year = 1815
33
33
 
34
34
 
35
- class Reunion(HolidaysRE):
35
+ class HolidaysRE(Reunion):
36
36
  pass
37
37
 
38
38
 
39
- class RE(HolidaysRE):
39
+ class RE(Reunion):
40
40
  pass
41
41
 
42
42
 
43
- class REU(HolidaysRE):
43
+ class REU(Reunion):
44
44
  pass
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysBL(ChildEntity, France):
17
+ class SaintBarthelemy(ChildEntity, France):
18
18
  """Saint Barthélemy holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -31,13 +31,13 @@ class HolidaysBL(ChildEntity, France):
31
31
  start_year = 2008
32
32
 
33
33
 
34
- class SaintBarthelemy(HolidaysBL):
34
+ class HolidaysBL(SaintBarthelemy):
35
35
  pass
36
36
 
37
37
 
38
- class BL(HolidaysBL):
38
+ class BL(SaintBarthelemy):
39
39
  pass
40
40
 
41
41
 
42
- class BLM(HolidaysBL):
42
+ class BLM(SaintBarthelemy):
43
43
  pass
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysMF(ChildEntity, France):
17
+ class SaintMartin(ChildEntity, France):
18
18
  """Saint Martin holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -31,13 +31,13 @@ class HolidaysMF(ChildEntity, France):
31
31
  start_year = 2008
32
32
 
33
33
 
34
- class SaintMartin(HolidaysMF):
34
+ class HolidaysMF(SaintMartin):
35
35
  pass
36
36
 
37
37
 
38
- class MF(HolidaysMF):
38
+ class MF(SaintMartin):
39
39
  pass
40
40
 
41
41
 
42
- class MAF(HolidaysMF):
42
+ class MAF(SaintMartin):
43
43
  pass
@@ -14,7 +14,7 @@ from holidays.countries.france import France
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysPM(ChildEntity, France):
17
+ class SaintPierreAndMiquelon(ChildEntity, France):
18
18
  """Saint Pierre and Miquelon holidays.
19
19
 
20
20
  Alias of a French subdivision that is also officially assigned
@@ -31,13 +31,13 @@ class HolidaysPM(ChildEntity, France):
31
31
  start_year = 1815
32
32
 
33
33
 
34
- class SaintPierreAndMiquelon(HolidaysPM):
34
+ class HolidaysPM(SaintPierreAndMiquelon):
35
35
  pass
36
36
 
37
37
 
38
- class PM(HolidaysPM):
38
+ class PM(SaintPierreAndMiquelon):
39
39
  pass
40
40
 
41
41
 
42
- class SPM(HolidaysPM):
42
+ class SPM(SaintPierreAndMiquelon):
43
43
  pass
@@ -32,9 +32,7 @@ class Samoa(HolidayBase, ChristianHolidays, InternationalHolidays):
32
32
 
33
33
  super().__init__(*args, **kwargs)
34
34
 
35
- def _populate(self, year):
36
- super()._populate(year)
37
-
35
+ def _populate_public_holidays(self):
38
36
  # New Year's Day.
39
37
  self._add_new_years_day("New Year's Day")
40
38
  self._add_new_years_day_two("The Day After New Year's Day")
@@ -14,7 +14,7 @@ from holidays.countries.norway import Norway
14
14
  from holidays.mixins.child_entity import ChildEntity
15
15
 
16
16
 
17
- class HolidaysSJ(ChildEntity, Norway):
17
+ class SvalbardAndJanMayen(ChildEntity, Norway):
18
18
  """Svalbard and Jan Mayen holidays.
19
19
 
20
20
  Alias of Norwegian subdivisions that are also officially assigned
@@ -29,13 +29,13 @@ class HolidaysSJ(ChildEntity, Norway):
29
29
  parent_entity_subdivision_code = "21"
30
30
 
31
31
 
32
- class SvalbardAndJanMayen(HolidaysSJ):
32
+ class HolidaysSJ(SvalbardAndJanMayen):
33
33
  pass
34
34
 
35
35
 
36
- class SJ(HolidaysSJ):
36
+ class SJ(SvalbardAndJanMayen):
37
37
  pass
38
38
 
39
39
 
40
- class SJM(HolidaysSJ):
40
+ class SJM(SvalbardAndJanMayen):
41
41
  pass