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.
- holidays/__init__.py +1 -1
- holidays/calendars/__init__.py +2 -1
- holidays/calendars/balinese_saka.py +112 -0
- holidays/calendars/buddhist.py +1 -1
- holidays/calendars/chinese.py +1 -1
- holidays/calendars/custom.py +1 -1
- holidays/calendars/gregorian.py +1 -1
- holidays/calendars/hebrew.py +1 -1
- holidays/calendars/hindu.py +866 -2
- holidays/calendars/islamic.py +161 -1
- holidays/calendars/julian.py +1 -1
- holidays/calendars/julian_revised.py +1 -1
- holidays/calendars/persian.py +1 -1
- holidays/calendars/sinhala.py +1 -1
- holidays/calendars/thai.py +309 -257
- holidays/constants.py +3 -1
- holidays/countries/__init__.py +7 -1
- holidays/countries/afghanistan.py +17 -7
- holidays/countries/albania.py +16 -7
- holidays/countries/algeria.py +14 -10
- holidays/countries/american_samoa.py +12 -6
- holidays/countries/andorra.py +5 -4
- holidays/countries/angola.py +15 -14
- holidays/countries/antigua_and_barbuda.py +145 -0
- holidays/countries/argentina.py +787 -169
- holidays/countries/armenia.py +5 -6
- holidays/countries/aruba.py +11 -9
- holidays/countries/australia.py +21 -20
- holidays/countries/austria.py +3 -1
- holidays/countries/azerbaijan.py +30 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +14 -7
- holidays/countries/bangladesh.py +5 -4
- holidays/countries/barbados.py +11 -9
- holidays/countries/belarus.py +15 -15
- holidays/countries/belgium.py +8 -6
- holidays/countries/belize.py +7 -6
- holidays/countries/bolivia.py +12 -11
- holidays/countries/bosnia_and_herzegovina.py +21 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +56 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +14 -5
- holidays/countries/burundi.py +17 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +16 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +15 -6
- holidays/countries/chile.py +29 -28
- holidays/countries/china.py +39 -38
- holidays/countries/colombia.py +15 -20
- holidays/countries/congo.py +6 -7
- holidays/countries/costa_rica.py +11 -10
- holidays/countries/croatia.py +8 -5
- holidays/countries/cuba.py +30 -27
- holidays/countries/curacao.py +6 -4
- holidays/countries/cyprus.py +4 -5
- holidays/countries/czechia.py +7 -6
- holidays/countries/denmark.py +5 -6
- holidays/countries/djibouti.py +11 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +10 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +26 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +6 -9
- holidays/countries/gabon.py +17 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +14 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +12 -6
- holidays/countries/guatemala.py +7 -9
- holidays/countries/guernsey.py +37 -34
- holidays/countries/guinea.py +182 -0
- holidays/countries/haiti.py +6 -5
- holidays/countries/honduras.py +8 -4
- holidays/countries/hongkong.py +49 -60
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +494 -174
- holidays/countries/indonesia.py +68 -108
- holidays/countries/iran.py +18 -9
- holidays/countries/ireland.py +5 -4
- holidays/countries/isle_of_man.py +2 -2
- holidays/countries/israel.py +4 -5
- holidays/countries/italy.py +5 -4
- holidays/countries/ivory_coast.py +156 -0
- holidays/countries/jamaica.py +6 -4
- holidays/countries/japan.py +5 -5
- holidays/countries/jersey.py +29 -26
- holidays/countries/jordan.py +13 -6
- holidays/countries/kazakhstan.py +72 -51
- holidays/countries/kenya.py +28 -18
- holidays/countries/kuwait.py +14 -7
- holidays/countries/kyrgyzstan.py +11 -6
- holidays/countries/laos.py +21 -29
- holidays/countries/latvia.py +7 -5
- holidays/countries/lesotho.py +6 -5
- holidays/countries/liechtenstein.py +5 -5
- holidays/countries/lithuania.py +4 -5
- holidays/countries/luxembourg.py +5 -3
- holidays/countries/macau.py +480 -0
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +30 -18
- holidays/countries/maldives.py +14 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +13 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +16 -7
- holidays/countries/morocco.py +13 -8
- holidays/countries/mozambique.py +3 -1
- holidays/countries/namibia.py +7 -5
- holidays/countries/netherlands.py +6 -6
- holidays/countries/new_zealand.py +3 -1
- holidays/countries/nicaragua.py +6 -5
- holidays/countries/nigeria.py +13 -5
- holidays/countries/north_macedonia.py +13 -5
- holidays/countries/northern_mariana_islands.py +12 -6
- holidays/countries/norway.py +15 -15
- holidays/countries/pakistan.py +48 -18
- holidays/countries/palau.py +13 -11
- holidays/countries/panama.py +9 -8
- holidays/countries/papua_new_guinea.py +25 -21
- holidays/countries/paraguay.py +10 -9
- holidays/countries/peru.py +4 -5
- holidays/countries/philippines.py +32 -18
- holidays/countries/poland.py +7 -6
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +12 -6
- holidays/countries/qatar.py +172 -0
- holidays/countries/romania.py +6 -4
- holidays/countries/russia.py +6 -4
- holidays/countries/saint_kitts_and_nevis.py +24 -22
- holidays/countries/saint_lucia.py +8 -7
- holidays/countries/samoa.py +7 -6
- holidays/countries/san_marino.py +4 -3
- holidays/countries/saudi_arabia.py +15 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/singapore.py +33 -38
- holidays/countries/slovakia.py +6 -5
- holidays/countries/slovenia.py +7 -6
- holidays/countries/south_africa.py +8 -6
- holidays/countries/south_korea.py +25 -32
- holidays/countries/spain.py +31 -24
- holidays/countries/sri_lanka.py +52 -42
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +230 -31
- holidays/countries/tanzania.py +34 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +38 -17
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +9 -3
- holidays/countries/turkey.py +17 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +43 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +130 -86
- holidays/countries/united_states_minor_outlying_islands.py +12 -6
- holidays/countries/united_states_virgin_islands.py +12 -6
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +16 -7
- holidays/countries/vanuatu.py +7 -5
- holidays/countries/vatican_city.py +16 -15
- holidays/countries/venezuela.py +11 -14
- holidays/countries/vietnam.py +15 -11
- holidays/countries/zambia.py +8 -6
- holidays/countries/zimbabwe.py +6 -4
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +1 -1
- holidays/financial/brasil_bolsa_balcao.py +14 -13
- holidays/financial/european_central_bank.py +7 -6
- holidays/financial/ice_futures_europe.py +7 -6
- holidays/financial/ny_stock_exchange.py +13 -10
- holidays/groups/__init__.py +2 -1
- holidays/groups/balinese_saka.py +45 -0
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +69 -4
- holidays/groups/christian.py +1 -1
- holidays/groups/custom.py +1 -1
- holidays/groups/eastern.py +1 -1
- holidays/groups/hebrew.py +1 -1
- holidays/groups/hindu.py +256 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +17 -3
- holidays/groups/persian.py +1 -1
- holidays/groups/sinhala.py +1 -1
- holidays/groups/thai.py +1 -7
- holidays/helpers.py +1 -1
- holidays/holiday_base.py +410 -273
- holidays/ical.py +228 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/de/LC_MESSAGES/PL.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/pt_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/zh_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_TW/LC_MESSAGES/TW.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +5 -2
- holidays/registry.py +7 -1
- holidays/utils.py +151 -151
- holidays/version.py +2 -2
- holidays-0.70.dist-info/METADATA +1404 -0
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/RECORD +253 -222
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
- holidays-0.68.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +7 -2
- {holidays-0.68.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
- holidays-0.68.dist-info/METADATA +0 -1080
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
holidays/countries/malta.py
CHANGED
|
@@ -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
|
|
@@ -17,24 +17,15 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Malta(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Oldest Maltese Holidays Law available online in full.
|
|
25
|
-
https://legislation.mt/eli/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
https://legislation.mt/eli/
|
|
29
|
-
[Att 8 tal-1989]
|
|
30
|
-
Additional Holidays added.
|
|
31
|
-
https://legislation.mt/eli/act/1989/8
|
|
32
|
-
[Att 2 tal-2005]
|
|
33
|
-
If fall on weekends then not observed in terms of vacation leave.
|
|
34
|
-
https://legislation.mt/eli/act/2005/2/eng
|
|
35
|
-
[Att 4 tal-2021]
|
|
36
|
-
Revert Act II of 2005 changes for vacation leave.
|
|
37
|
-
https://legislation.mt/eli/cap/252/20210212/mlt
|
|
20
|
+
"""Malta holidays.
|
|
21
|
+
|
|
22
|
+
References:
|
|
23
|
+
* <https://www.gov.mt/en/About%20Malta/Pages/Public%20Holidays.aspx>
|
|
24
|
+
* [Att 10 tal-1980 (Oldest Maltese Holidays Law available online in full)](https://legislation.mt/eli/act/1980/10/mlt)
|
|
25
|
+
* [A.L. 40 tal-1987 (Additional Holidays added)](https://legislation.mt/eli/ln/1987/8/mlt)
|
|
26
|
+
* [Att 8 tal-1989 (Additional Holidays added)](https://legislation.mt/eli/act/1989/8)
|
|
27
|
+
* [Att 2 tal-2005 (If fall on weekends then not observed in terms of vacation leave)](https://legislation.mt/eli/act/2005/2/eng)
|
|
28
|
+
* [Att 4 tal-2021 (Revert Act II of 2005 changes for vacation leave)](https://legislation.mt/eli/cap/252/20210212/mlt)
|
|
38
29
|
"""
|
|
39
30
|
|
|
40
31
|
country = "MT"
|
|
@@ -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,9 +18,11 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class HolidaysMH(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
"""Marshall Islands holidays.
|
|
22
|
+
|
|
23
|
+
References:
|
|
24
|
+
* <https://rmiparliament.org/cms/component/content/article/14-pressrelease/49-important-public-holidays.html?Itemid=101>
|
|
25
|
+
* <https://www.rmiembassyus.org/country-profile#:~:text=national%20holidays>
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
country = "MH"
|
holidays/countries/mauritania.py
CHANGED
|
@@ -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
|
|
@@ -16,18 +16,25 @@ from holidays.holiday_base import HolidayBase
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
19
|
-
"""
|
|
19
|
+
"""Mauritania holidays.
|
|
20
|
+
|
|
20
21
|
References:
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Mauritania>
|
|
23
|
+
* <https://www.timeanddate.com/holidays/mauritania/>
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
country = "MR"
|
|
26
27
|
weekend = {FRI, SAT}
|
|
27
28
|
|
|
28
|
-
def __init__(self, *args, **kwargs):
|
|
29
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
30
|
+
"""
|
|
31
|
+
Args:
|
|
32
|
+
islamic_show_estimated:
|
|
33
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
34
|
+
if holiday date is estimated.
|
|
35
|
+
"""
|
|
29
36
|
InternationalHolidays.__init__(self)
|
|
30
|
-
IslamicHolidays.__init__(self)
|
|
37
|
+
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
31
38
|
super().__init__(*args, **kwargs)
|
|
32
39
|
|
|
33
40
|
def _populate(self, year):
|
holidays/countries/mexico.py
CHANGED
|
@@ -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
|
|
@@ -17,13 +17,14 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Mexico(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
20
|
+
"""Mexico holidays.
|
|
21
|
+
|
|
21
22
|
References:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Mexico>
|
|
24
|
+
* <https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_festivos_en_M%C3%A9xico>
|
|
25
|
+
* <https://www.gob.mx/cms/uploads/attachment/file/156203/1044_Ley_Federal_del_Trabajo.pdf>
|
|
26
|
+
* <http://www.diputados.gob.mx/LeyesBiblio/ref/lft/LFT_orig_01abr70_ima.pdf>
|
|
27
|
+
* <https://www.gob.mx/profedet/es/articulos/sabes-cuales-son-los-dias-de-descanso-obligatorio-para-este-2024>
|
|
27
28
|
"""
|
|
28
29
|
|
|
29
30
|
country = "MX"
|
holidays/countries/moldova.py
CHANGED
|
@@ -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
|
|
@@ -19,9 +19,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class Moldova(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
"""Moldova holidays.
|
|
23
|
+
|
|
24
|
+
References:
|
|
25
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Moldova>
|
|
26
|
+
* <https://www.legis.md/cautare/getResults?doc_id=133686>
|
|
25
27
|
"""
|
|
26
28
|
|
|
27
29
|
country = "MD"
|
holidays/countries/monaco.py
CHANGED
|
@@ -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,9 +18,11 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Monaco(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
"""Monaco holidays.
|
|
22
|
+
|
|
23
|
+
References:
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Monaco>
|
|
25
|
+
* <https://en.service-public-entreprises.gouv.mc/Employment-and-social-affairs/Employment-regulations/Leave/Public-Holidays>
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
country = "MC"
|
holidays/countries/montenegro.py
CHANGED
|
@@ -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
|
|
@@ -34,11 +34,12 @@ class Montenegro(
|
|
|
34
34
|
IslamicHolidays,
|
|
35
35
|
StaticHolidays,
|
|
36
36
|
):
|
|
37
|
-
"""
|
|
37
|
+
"""Montenegro holidays.
|
|
38
|
+
|
|
38
39
|
References:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Montenegro>
|
|
41
|
+
* [Zakon o državnim i drugim praznicima](https://wapi.gov.me/download-preview/927f23a3-db4e-4f65-9f29-ce3c9dde0c90?version=1.0)
|
|
42
|
+
* [Zakon o svetkovanju vjerskih praznika](https://wapi.gov.me/download-preview/4f0b05a4-c85b-4eb2-bc29-0ad8363a9ba3?version=1.0)
|
|
42
43
|
"""
|
|
43
44
|
|
|
44
45
|
country = "ME"
|
|
@@ -53,11 +54,19 @@ class Montenegro(
|
|
|
53
54
|
supported_categories = (CATHOLIC, ISLAMIC, HEBREW, ORTHODOX, PUBLIC, WORKDAY)
|
|
54
55
|
start_year = 2007
|
|
55
56
|
|
|
56
|
-
def __init__(self, *args, **kwargs):
|
|
57
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
58
|
+
"""
|
|
59
|
+
Args:
|
|
60
|
+
islamic_show_estimated:
|
|
61
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
62
|
+
if holiday date is estimated.
|
|
63
|
+
"""
|
|
57
64
|
ChristianHolidays.__init__(self, calendar=JULIAN_CALENDAR)
|
|
58
65
|
HebrewCalendarHolidays.__init__(self)
|
|
59
66
|
InternationalHolidays.__init__(self)
|
|
60
|
-
IslamicHolidays.__init__(
|
|
67
|
+
IslamicHolidays.__init__(
|
|
68
|
+
self, cls=MontenegroIslamicHolidays, show_estimated=islamic_show_estimated
|
|
69
|
+
)
|
|
61
70
|
StaticHolidays.__init__(self, cls=MontenegroStaticHolidays)
|
|
62
71
|
kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
|
|
63
72
|
super().__init__(*args, **kwargs)
|
holidays/countries/morocco.py
CHANGED
|
@@ -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
|
|
@@ -17,12 +17,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Morocco(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
20
|
-
"""
|
|
21
|
-
Morocco holidays.
|
|
20
|
+
"""Morocco holidays.
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
References:
|
|
23
|
+
* <https://fr.wikipedia.org/wiki/F%C3%AAtes_et_jours_f%C3%A9ri%C3%A9s_au_Maroc>
|
|
24
|
+
* <https://www.mmsp.gov.ma/fr/pratiques.aspx?id=38>
|
|
26
25
|
"""
|
|
27
26
|
|
|
28
27
|
country = "MA"
|
|
@@ -31,9 +30,15 @@ class Morocco(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
31
30
|
estimated_label = tr("(تقدير) %s")
|
|
32
31
|
supported_languages = ("ar", "en_US", "fr")
|
|
33
32
|
|
|
34
|
-
def __init__(self, *args, **kwargs):
|
|
33
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
34
|
+
"""
|
|
35
|
+
Args:
|
|
36
|
+
islamic_show_estimated:
|
|
37
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
38
|
+
if holiday date is estimated.
|
|
39
|
+
"""
|
|
35
40
|
InternationalHolidays.__init__(self)
|
|
36
|
-
IslamicHolidays.__init__(self)
|
|
41
|
+
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
37
42
|
super().__init__(*args, **kwargs)
|
|
38
43
|
|
|
39
44
|
def _populate_public_holidays(self):
|
holidays/countries/mozambique.py
CHANGED
|
@@ -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
|
|
@@ -17,6 +17,8 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Mozambique(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
+
"""Mozambique holidays."""
|
|
21
|
+
|
|
20
22
|
country = "MZ"
|
|
21
23
|
default_language = "pt_MZ"
|
|
22
24
|
# %s (observed).
|
holidays/countries/namibia.py
CHANGED
|
@@ -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
|
|
@@ -16,11 +16,13 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class Namibia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
"""Namibia holidays.
|
|
20
|
+
|
|
21
|
+
References:
|
|
22
|
+
* <https://www.officeholidays.com/countries/namibia>
|
|
23
|
+
* <https://www.timeanddate.com/holidays/namibia/>
|
|
24
|
+
* <https://tinyurl.com/lacorg5835>
|
|
22
25
|
|
|
23
|
-
https://tinyurl.com/lacorg5835
|
|
24
26
|
As of 1991/2/1, whenever a public holiday falls on a Sunday, it rolls over to the monday,
|
|
25
27
|
unless that monday is already a public holiday.
|
|
26
28
|
Since the interval from 1991/1/1 to 1991/2/1 includes only New Year's Day, and it's a Tuesday,
|
|
@@ -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
|
|
@@ -20,12 +20,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class Netherlands(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
23
|
-
"""
|
|
24
|
-
References:
|
|
23
|
+
"""Netherlands holidays.
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
References:
|
|
26
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Netherlands>
|
|
27
|
+
* <https://nl.wikipedia.org/wiki/Feestdagen_in_Nederland>
|
|
28
|
+
* <http://www.iamsterdam.com/en/plan-your-trip/practical-info/public-holidays>
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
country = "NL"
|
|
@@ -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
|
|
@@ -24,6 +24,8 @@ from holidays.observed_holiday_base import (
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
27
|
+
"""New Zealand holidays."""
|
|
28
|
+
|
|
27
29
|
country = "NZ"
|
|
28
30
|
observed_label = "%s (observed)"
|
|
29
31
|
subdivisions = (
|
holidays/countries/nicaragua.py
CHANGED
|
@@ -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
|
|
@@ -17,11 +17,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Nicaragua(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
20
|
+
"""Nicaragua holidays.
|
|
21
|
+
|
|
21
22
|
References:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Nicaragua>
|
|
24
|
+
* <http://legislacion.asamblea.gob.ni/Normaweb.nsf/($All)/FA251B3C54F5BAEF062571C40055736C?OpenDocument>
|
|
25
|
+
* <http://legislacion.asamblea.gob.ni/normaweb.nsf/($All)/3B28EC51ABE2787706258848005ADBB0?OpenDocument>
|
|
25
26
|
"""
|
|
26
27
|
|
|
27
28
|
country = "NI"
|
holidays/countries/nigeria.py
CHANGED
|
@@ -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
|
|
@@ -23,18 +23,26 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SAT_SUN_TO_NEXT_
|
|
|
23
23
|
class Nigeria(
|
|
24
24
|
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
25
25
|
):
|
|
26
|
-
"""
|
|
27
|
-
|
|
26
|
+
"""Nigeria holidays.
|
|
27
|
+
|
|
28
|
+
References:
|
|
29
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Nigeria>
|
|
28
30
|
"""
|
|
29
31
|
|
|
30
32
|
country = "NG"
|
|
31
33
|
observed_label = "%s (observed)"
|
|
32
34
|
start_year = 1979
|
|
33
35
|
|
|
34
|
-
def __init__(self, *args, **kwargs):
|
|
36
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
37
|
+
"""
|
|
38
|
+
Args:
|
|
39
|
+
islamic_show_estimated:
|
|
40
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
41
|
+
if holiday date is estimated.
|
|
42
|
+
"""
|
|
35
43
|
ChristianHolidays.__init__(self)
|
|
36
44
|
InternationalHolidays.__init__(self)
|
|
37
|
-
IslamicHolidays.__init__(self)
|
|
45
|
+
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
38
46
|
StaticHolidays.__init__(self, NigeriaStaticHolidays)
|
|
39
47
|
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_WORKDAY)
|
|
40
48
|
kwargs.setdefault("observed_since", 2016)
|
|
@@ -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
|
|
@@ -16,16 +16,24 @@ from holidays.holiday_base import HolidayBase
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class NorthMacedonia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays):
|
|
19
|
-
"""
|
|
20
|
-
|
|
19
|
+
"""North Macedonia holidays.
|
|
20
|
+
|
|
21
|
+
References:
|
|
22
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_North_Macedonia>
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
25
|
country = "MK"
|
|
24
26
|
|
|
25
|
-
def __init__(self, *args, **kwargs):
|
|
27
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
28
|
+
"""
|
|
29
|
+
Args:
|
|
30
|
+
islamic_show_estimated:
|
|
31
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
32
|
+
if holiday date is estimated.
|
|
33
|
+
"""
|
|
26
34
|
ChristianHolidays.__init__(self, JULIAN_CALENDAR)
|
|
27
35
|
InternationalHolidays.__init__(self)
|
|
28
|
-
IslamicHolidays.__init__(self)
|
|
36
|
+
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
29
37
|
super().__init__(*args, **kwargs)
|
|
30
38
|
|
|
31
39
|
def _populate_public_holidays(self):
|
|
@@ -4,29 +4,35 @@
|
|
|
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
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
-
from holidays.constants import PUBLIC, UNOFFICIAL
|
|
13
|
+
from holidays.constants import GOVERNMENT, PUBLIC, UNOFFICIAL
|
|
14
14
|
from holidays.countries.united_states import US
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class HolidaysMP(US):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"""Northern Mariana Islands (the) holidays.
|
|
19
|
+
|
|
20
|
+
Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
|
|
21
|
+
See <https://en.wikipedia.org/wiki/ISO_3166-2:US#Subdivisions_included_in_ISO_3166-1>
|
|
22
|
+
"""
|
|
21
23
|
|
|
22
24
|
country = "MP"
|
|
23
|
-
supported_categories = (PUBLIC, UNOFFICIAL)
|
|
25
|
+
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
|
24
26
|
subdivisions = () # Override US subdivisions.
|
|
25
27
|
|
|
26
28
|
def _populate_public_holidays(self) -> None:
|
|
27
29
|
self.subdiv = "MP"
|
|
28
30
|
super()._populate_public_holidays()
|
|
29
31
|
|
|
32
|
+
def _populate_government_holidays(self) -> None:
|
|
33
|
+
self.subdiv = "MP"
|
|
34
|
+
super()._populate_government_holidays()
|
|
35
|
+
|
|
30
36
|
def _populate_unofficial_holidays(self) -> None:
|
|
31
37
|
self.subdiv = "MP"
|
|
32
38
|
super()._populate_unofficial_holidays()
|
holidays/countries/norway.py
CHANGED
|
@@ -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,29 +18,29 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Norway(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
-
"""
|
|
22
|
-
Norwegian holidays.
|
|
23
|
-
Note that holidays falling on a sunday is "lost",
|
|
24
|
-
it will not be moved to another day to make up for the collision.
|
|
21
|
+
"""Norway holidays.
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
References:
|
|
24
|
+
* <https://lovdata.no/dokument/NL/lov/1947-04-26-1>
|
|
25
|
+
* <https://no.wikipedia.org/wiki/Helligdager_i_Norge>
|
|
26
|
+
* <https://www.timeanddate.no/merkedag/norge/>
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
Note that holidays falling on a sunday is "lost", it will not be moved
|
|
29
|
+
to another day to make up for the collision.
|
|
30
|
+
|
|
31
|
+
In Norway, ALL sundays are considered a holiday (https://snl.no/helligdag).
|
|
32
|
+
Initialize this class with `include_sundays=False` to not include sundays as a holiday.
|
|
34
33
|
"""
|
|
35
34
|
|
|
36
35
|
country = "NO"
|
|
37
36
|
default_language = "no"
|
|
38
37
|
supported_languages = ("en_US", "no", "th", "uk")
|
|
39
38
|
|
|
40
|
-
def __init__(self, include_sundays=False, *args, **kwargs):
|
|
39
|
+
def __init__(self, include_sundays: bool = False, *args, **kwargs):
|
|
41
40
|
"""
|
|
42
|
-
:
|
|
43
|
-
|
|
41
|
+
Args:
|
|
42
|
+
include_sundays:
|
|
43
|
+
Whether to consider sundays as a holiday (which they are in Norway)
|
|
44
44
|
"""
|
|
45
45
|
self.include_sundays = include_sundays
|
|
46
46
|
ChristianHolidays.__init__(self)
|