diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index 16bebbdde..fb5792305 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -74,7 +74,8 @@ "stubs/ttkthemes", "stubs/urllib3", "stubs/vobject", - "stubs/WebOb" + "stubs/WebOb", + "stubs/workalendar" ], "typeCheckingMode": "strict", // TODO: Complete incomplete stubs diff --git a/stubs/workalendar/@tests/stubtest_allowlist.txt b/stubs/workalendar/@tests/stubtest_allowlist.txt new file mode 100644 index 000000000..b6204e4aa --- /dev/null +++ b/stubs/workalendar/@tests/stubtest_allowlist.txt @@ -0,0 +1,5 @@ +workalendar.core.CoreCalendar.name +workalendar.europe.scotland.mixins.VictoriaDayTuesdayAfterFirstMondayMay +workalendar.skyfield_astronomy +workalendar.tests +workalendar.core.classproperty diff --git a/stubs/workalendar/METADATA.toml b/stubs/workalendar/METADATA.toml new file mode 100644 index 000000000..0d4a5007a --- /dev/null +++ b/stubs/workalendar/METADATA.toml @@ -0,0 +1,2 @@ +version = "17.0.*" +upstream_repository = "https://github.com/workalendar/workalendar" diff --git a/stubs/workalendar/workalendar/__init__.pyi b/stubs/workalendar/workalendar/__init__.pyi new file mode 100644 index 000000000..e69de29bb diff --git a/stubs/workalendar/workalendar/africa/__init__.pyi b/stubs/workalendar/workalendar/africa/__init__.pyi new file mode 100644 index 000000000..1b68102bf --- /dev/null +++ b/stubs/workalendar/workalendar/africa/__init__.pyi @@ -0,0 +1,11 @@ +from .algeria import Algeria as Algeria +from .angola import Angola as Angola +from .benin import Benin as Benin +from .ivory_coast import IvoryCoast as IvoryCoast +from .kenya import Kenya as Kenya +from .madagascar import Madagascar as Madagascar +from .mozambique import Mozambique as Mozambique +from .nigeria import Nigeria as Nigeria +from .sao_tome import SaoTomeAndPrincipe as SaoTomeAndPrincipe +from .south_africa import SouthAfrica as SouthAfrica +from .tunisia import Tunisia as Tunisia diff --git a/stubs/workalendar/workalendar/africa/algeria.pyi b/stubs/workalendar/workalendar/africa/algeria.pyi new file mode 100644 index 000000000..af4957704 --- /dev/null +++ b/stubs/workalendar/workalendar/africa/algeria.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import IslamicCalendar + +class Algeria(IslamicCalendar): + include_labour_day: ClassVar[bool] + include_prophet_birthday: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + include_day_of_sacrifice: ClassVar[bool] + include_islamic_new_year: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + ISLAMIC_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/africa/angola.pyi b/stubs/workalendar/workalendar/africa/angola.pyi new file mode 100644 index 000000000..5c7b08435 --- /dev/null +++ b/stubs/workalendar/workalendar/africa/angola.pyi @@ -0,0 +1,15 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Angola(WesternCalendar): + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + include_fat_tuesday: ClassVar[bool] + fat_tuesday_label: ClassVar[str] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_christmas: ClassVar[bool] + include_all_souls: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/africa/benin.pyi b/stubs/workalendar/workalendar/africa/benin.pyi new file mode 100644 index 000000000..9aa56341f --- /dev/null +++ b/stubs/workalendar/workalendar/africa/benin.pyi @@ -0,0 +1,18 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import IslamoWesternCalendar + +class Benin(IslamoWesternCalendar): + include_labour_day: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_prophet_birthday: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + include_day_of_sacrifice: ClassVar[bool] + include_day_of_sacrifice_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + WEEKEND_DAYS: Incomplete diff --git a/stubs/workalendar/workalendar/africa/ivory_coast.pyi b/stubs/workalendar/workalendar/africa/ivory_coast.pyi new file mode 100644 index 000000000..4c205238d --- /dev/null +++ b/stubs/workalendar/workalendar/africa/ivory_coast.pyi @@ -0,0 +1,18 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import IslamoWesternCalendar + +class IvoryCoast(IslamoWesternCalendar): + include_labour_day: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_day_after_prophet_birthday: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + include_day_of_sacrifice: ClassVar[bool] + include_day_of_sacrifice_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + WEEKEND_DAYS: Incomplete diff --git a/stubs/workalendar/workalendar/africa/kenya.pyi b/stubs/workalendar/workalendar/africa/kenya.pyi new file mode 100644 index 000000000..ffa19d6a6 --- /dev/null +++ b/stubs/workalendar/workalendar/africa/kenya.pyi @@ -0,0 +1,18 @@ +from _typeshed import Incomplete +from collections.abc import Generator +from typing import ClassVar + +from ..core import IslamoWesternCalendar + +class Kenya(IslamoWesternCalendar): + include_labour_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + include_day_of_sacrifice: ClassVar[bool] + shift_sunday_holidays: ClassVar[bool] + WEEKEND_DAYS: Incomplete + FIXED_HOLIDAYS: Incomplete + def get_fixed_holidays(self, year): ... + def get_shifted_holidays(self, dates) -> Generator[Incomplete, None, None]: ... + def get_calendar_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/africa/madagascar.pyi b/stubs/workalendar/workalendar/africa/madagascar.pyi new file mode 100644 index 000000000..56e9cfac9 --- /dev/null +++ b/stubs/workalendar/workalendar/africa/madagascar.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Madagascar(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/africa/mozambique.pyi b/stubs/workalendar/workalendar/africa/mozambique.pyi new file mode 100644 index 000000000..316db2247 --- /dev/null +++ b/stubs/workalendar/workalendar/africa/mozambique.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Mozambique(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_christmas: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/africa/nigeria.pyi b/stubs/workalendar/workalendar/africa/nigeria.pyi new file mode 100644 index 000000000..79bd16f74 --- /dev/null +++ b/stubs/workalendar/workalendar/africa/nigeria.pyi @@ -0,0 +1,18 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import IslamoWesternCalendar + +class Nigeria(IslamoWesternCalendar): + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + include_day_of_sacrifice: ClassVar[bool] + shift_sunday_holidays: ClassVar[bool] + shift_new_years_day: ClassVar[bool] + WEEKEND_DAYS: Incomplete + FIXED_HOLIDAYS: Incomplete + def get_fixed_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/africa/sao_tome.pyi b/stubs/workalendar/workalendar/africa/sao_tome.pyi new file mode 100644 index 000000000..58e377fab --- /dev/null +++ b/stubs/workalendar/workalendar/africa/sao_tome.pyi @@ -0,0 +1,9 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class SaoTomeAndPrincipe(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + include_all_saints: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/africa/south_africa.pyi b/stubs/workalendar/workalendar/africa/south_africa.pyi new file mode 100644 index 000000000..6a0030dd2 --- /dev/null +++ b/stubs/workalendar/workalendar/africa/south_africa.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class SouthAfrica(WesternCalendar): + include_good_friday: ClassVar[bool] + include_christmas: ClassVar[bool] + def holidays(self, year: Incomplete | None = None): ... + def get_easter_monday_or_family_day(self, year): ... + def get_fixed_holidays(self, year): ... + def get_variable_days(self, year): ... + def get_calendar_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/africa/tunisia.pyi b/stubs/workalendar/workalendar/africa/tunisia.pyi new file mode 100644 index 000000000..5c620ea10 --- /dev/null +++ b/stubs/workalendar/workalendar/africa/tunisia.pyi @@ -0,0 +1,16 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import IslamicCalendar + +class Tunisia(IslamicCalendar): + include_labour_day: ClassVar[bool] + include_prophet_birthday: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + length_eid_al_fitr: int + include_day_of_sacrifice: ClassVar[bool] + length_eid_al_adha: int + include_islamic_new_year: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + WEEKEND_DAYS: Incomplete + def get_fixed_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/america/__init__.pyi b/stubs/workalendar/workalendar/america/__init__.pyi new file mode 100644 index 000000000..ba36ee024 --- /dev/null +++ b/stubs/workalendar/workalendar/america/__init__.pyi @@ -0,0 +1,86 @@ +from .argentina import Argentina as Argentina +from .barbados import Barbados as Barbados +from .brazil import ( + Brazil as Brazil, + BrazilAcre as BrazilAcre, + BrazilAlagoas as BrazilAlagoas, + BrazilAmapa as BrazilAmapa, + BrazilAmazonas as BrazilAmazonas, + BrazilAracajuCity as BrazilAracajuCity, + BrazilBahia as BrazilBahia, + BrazilBankCalendar as BrazilBankCalendar, + BrazilBelemCity as BrazilBelemCity, + BrazilBeloHorizonteCity as BrazilBeloHorizonteCity, + BrazilBoaVistaCity as BrazilBoaVistaCity, + BrazilCampoGrandeCity as BrazilCampoGrandeCity, + BrazilCariacicaCity as BrazilCariacicaCity, + BrazilCeara as BrazilCeara, + BrazilChapecoCity as BrazilChapecoCity, + BrazilCuiabaCity as BrazilCuiabaCity, + BrazilCuritibaCity as BrazilCuritibaCity, + BrazilDistritoFederal as BrazilDistritoFederal, + BrazilEspiritoSanto as BrazilEspiritoSanto, + BrazilFlorianopolisCity as BrazilFlorianopolisCity, + BrazilFortalezaCity as BrazilFortalezaCity, + BrazilGoianiaCity as BrazilGoianiaCity, + BrazilGoias as BrazilGoias, + BrazilGuarapariCity as BrazilGuarapariCity, + BrazilJoaoPessoaCity as BrazilJoaoPessoaCity, + BrazilJoinvilleCity as BrazilJoinvilleCity, + BrazilMacapaCity as BrazilMacapaCity, + BrazilMaceioCity as BrazilMaceioCity, + BrazilManausCity as BrazilManausCity, + BrazilMaranhao as BrazilMaranhao, + BrazilMatoGrosso as BrazilMatoGrosso, + BrazilMatoGrossoDoSul as BrazilMatoGrossoDoSul, + BrazilMinasGerais as BrazilMinasGerais, + BrazilNatalCity as BrazilNatalCity, + BrazilPalmasCity as BrazilPalmasCity, + BrazilPara as BrazilPara, + BrazilParaiba as BrazilParaiba, + BrazilParana as BrazilParana, + BrazilPernambuco as BrazilPernambuco, + BrazilPiaui as BrazilPiaui, + BrazilPortoAlegreCity as BrazilPortoAlegreCity, + BrazilPortoVelhoCity as BrazilPortoVelhoCity, + BrazilRecifeCity as BrazilRecifeCity, + BrazilRioBrancoCity as BrazilRioBrancoCity, + BrazilRioDeJaneiro as BrazilRioDeJaneiro, + BrazilRioGrandeDoNorte as BrazilRioGrandeDoNorte, + BrazilRioGrandeDoSul as BrazilRioGrandeDoSul, + BrazilRondonia as BrazilRondonia, + BrazilRoraima as BrazilRoraima, + BrazilSalvadorCity as BrazilSalvadorCity, + BrazilSantaCatarina as BrazilSantaCatarina, + BrazilSaoPauloCity as BrazilSaoPauloCity, + BrazilSaoPauloState as BrazilSaoPauloState, + BrazilSergipe as BrazilSergipe, + BrazilSerraCity as BrazilSerraCity, + BrazilSorocabaCity as BrazilSorocabaCity, + BrazilTeresinaCity as BrazilTeresinaCity, + BrazilTocantins as BrazilTocantins, + BrazilVilaVelhaCity as BrazilVilaVelhaCity, + BrazilVitoriaCity as BrazilVitoriaCity, +) +from .canada import ( + Alberta as Alberta, + BritishColumbia as BritishColumbia, + Canada as Canada, + Manitoba as Manitoba, + NewBrunswick as NewBrunswick, + Newfoundland as Newfoundland, + NorthwestTerritories as NorthwestTerritories, + NovaScotia as NovaScotia, + Nunavut as Nunavut, + Ontario as Ontario, + PrinceEdwardIsland as PrinceEdwardIsland, + Quebec as Quebec, + Saskatchewan as Saskatchewan, + Yukon as Yukon, +) +from .chile import Chile as Chile +from .colombia import Colombia as Colombia +from .el_salvador import ElSalvador as ElSalvador +from .mexico import Mexico as Mexico +from .panama import Panama as Panama +from .paraguay import Paraguay as Paraguay diff --git a/stubs/workalendar/workalendar/america/argentina.pyi b/stubs/workalendar/workalendar/america/argentina.pyi new file mode 100644 index 000000000..186728dc2 --- /dev/null +++ b/stubs/workalendar/workalendar/america/argentina.pyi @@ -0,0 +1,23 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Argentina(WesternCalendar): + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + include_fat_tuesday: ClassVar[bool] + fat_tuesday_label: ClassVar[str] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_christmas: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + immaculate_conception_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + def get_general_guemes_day(self, year): ... + def get_general_martin_day(self, year): ... + def get_soberania_day(self, year): ... + def get_diversidad_day(self, year): ... + def get_malvinas_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/america/barbados.pyi b/stubs/workalendar/workalendar/america/barbados.pyi new file mode 100644 index 000000000..4a8aa9520 --- /dev/null +++ b/stubs/workalendar/workalendar/america/barbados.pyi @@ -0,0 +1,18 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Barbados(WesternCalendar): + include_labour_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_monday: ClassVar[bool] + non_computable_holiday_dict: Incomplete + FIXED_HOLIDAYS: Incomplete + def get_kadooment_day(self, year): ... + def get_emancipation_day(self, year): ... + def get_variable_days(self, year): ... + def non_computable_holiday(self, year): ... + def get_fixed_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/america/brazil.pyi b/stubs/workalendar/workalendar/america/brazil.pyi new file mode 100644 index 000000000..bbce7bae3 --- /dev/null +++ b/stubs/workalendar/workalendar/america/brazil.pyi @@ -0,0 +1,268 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Brazil(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_sao_jose: ClassVar[bool] + sao_jose_label: ClassVar[str] + include_sao_pedro: ClassVar[bool] + sao_pedro_label: ClassVar[str] + include_sao_joao: ClassVar[bool] + sao_joao_label: ClassVar[str] + include_labour_day: ClassVar[bool] + include_servidor_publico: ClassVar[bool] + servidor_publico_label: ClassVar[str] + include_consciencia_negra: ClassVar[bool] + consciencia_negra_day: Incomplete + consciencia_negra_label: ClassVar[str] + include_easter_sunday: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + immaculate_conception_label: ClassVar[str] + def get_variable_days(self, year): ... + +class BrazilAcre(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilAlagoas(Brazil): + FIXED_HOLIDAYS: Incomplete + include_sao_pedro: ClassVar[bool] + include_sao_joao: ClassVar[bool] + include_consciencia_negra: ClassVar[bool] + +class BrazilAmapa(Brazil): + FIXED_HOLIDAYS: Incomplete + include_sao_jose: ClassVar[bool] + sao_jose_label: ClassVar[str] + include_consciencia_negra: ClassVar[bool] + +class BrazilAmazonas(Brazil): + FIXED_HOLIDAYS: Incomplete + include_consciencia_negra: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class BrazilBahia(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilCeara(Brazil): + FIXED_HOLIDAYS: Incomplete + include_sao_jose: ClassVar[bool] + +class BrazilDistritoFederal(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilEspiritoSanto(Brazil): + include_servidor_publico: ClassVar[bool] + +class BrazilGoias(Brazil): + include_servidor_publico: ClassVar[bool] + +class BrazilMaranhao(Brazil): + FIXED_HOLIDAYS: Incomplete + include_immaculate_conception: ClassVar[bool] + +class BrazilMinasGerais(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilMatoGrosso(Brazil): + include_consciencia_negra: ClassVar[bool] + consciencia_negra_day: Incomplete + +class BrazilMatoGrossoDoSul(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilPara(Brazil): + FIXED_HOLIDAYS: Incomplete + include_immaculate_conception: ClassVar[bool] + +class BrazilParaiba(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilPernambuco(Brazil): + FIXED_HOLIDAYS: Incomplete + include_sao_joao: ClassVar[bool] + +class BrazilPiaui(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilParana(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilRioDeJaneiro(Brazil): + FIXED_HOLIDAYS: Incomplete + include_fat_tuesday: ClassVar[bool] + fat_tuesday_label: ClassVar[str] + include_servidor_publico: ClassVar[bool] + servidor_publico_label: ClassVar[str] + include_consciencia_negra: ClassVar[bool] + consciencia_negra_label: ClassVar[str] + include_immaculate_conception: ClassVar[bool] + def get_dia_do_comercio(self, year): ... + def get_variable_days(self, year): ... + +class BrazilRioGrandeDoNorte(Brazil): + FIXED_HOLIDAYS: Incomplete + include_sao_pedro: ClassVar[bool] + sao_pedro_label: ClassVar[str] + +class BrazilRioGrandeDoSul(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilRondonia(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilRoraima(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilSantaCatarina(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilSaoPauloState(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilSaoPauloCity(BrazilSaoPauloState): + FIXED_HOLIDAYS: Incomplete + include_fat_tuesday: ClassVar[bool] + fat_tuesday_label: ClassVar[str] + include_easter_sunday: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_good_friday: ClassVar[bool] + good_friday_label: ClassVar[str] + include_consciencia_negra: ClassVar[bool] + consciencia_negra_label: ClassVar[str] + +class BrazilSergipe(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilTocantins(Brazil): + FIXED_HOLIDAYS: Incomplete + +class BrazilVitoriaCity(BrazilEspiritoSanto): + FIXED_HOLIDAYS: Incomplete + include_corpus_christi: ClassVar[bool] + include_good_friday: ClassVar[bool] + good_friday_label: ClassVar[str] + +class BrazilVilaVelhaCity(BrazilEspiritoSanto): + FIXED_HOLIDAYS: Incomplete + +class BrazilCariacicaCity(BrazilEspiritoSanto): + FIXED_HOLIDAYS: Incomplete + include_corpus_christi: ClassVar[bool] + include_good_friday: ClassVar[bool] + good_friday_label: ClassVar[str] + include_sao_joao: ClassVar[bool] + sao_joao_label: ClassVar[str] + +class BrazilGuarapariCity(BrazilEspiritoSanto): + FIXED_HOLIDAYS: Incomplete + include_sao_pedro: ClassVar[bool] + include_consciencia_negra: ClassVar[bool] + consciencia_negra_day: Incomplete + include_immaculate_conception: ClassVar[bool] + +class BrazilSerraCity(BrazilEspiritoSanto): + FIXED_HOLIDAYS: Incomplete + include_fat_tuesday: ClassVar[bool] + fat_tuesday_label: ClassVar[str] + include_ash_wednesday: ClassVar[bool] + ash_wednesday_label: ClassVar[str] + include_good_friday: ClassVar[bool] + good_friday_label: ClassVar[str] + include_sao_pedro: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + def get_variable_days(self, year): ... + +class BrazilRioBrancoCity(BrazilAcre): + FIXED_HOLIDAYS: Incomplete + +class BrazilMaceioCity(BrazilAlagoas): + FIXED_HOLIDAYS: Incomplete + +class BrazilManausCity(BrazilAmazonas): + FIXED_HOLIDAYS: Incomplete + +class BrazilMacapaCity(BrazilAmapa): + FIXED_HOLIDAYS: Incomplete + +class BrazilSalvadorCity(BrazilBahia): + FIXED_HOLIDAYS: Incomplete + +class BrazilFortalezaCity(BrazilCeara): + FIXED_HOLIDAYS: Incomplete + +class BrazilGoianiaCity(BrazilGoias): + FIXED_HOLIDAYS: Incomplete + +class BrazilBeloHorizonteCity(BrazilMinasGerais): + FIXED_HOLIDAYS: Incomplete + +class BrazilCampoGrandeCity(BrazilMatoGrossoDoSul): + FIXED_HOLIDAYS: Incomplete + +class BrazilCuiabaCity(BrazilMatoGrosso): + FIXED_HOLIDAYS: Incomplete + include_easter_sunday: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_good_friday: ClassVar[bool] + good_friday_label: ClassVar[str] + +class BrazilBelemCity(BrazilPara): + FIXED_HOLIDAYS: Incomplete + +class BrazilJoaoPessoaCity(BrazilParaiba): + FIXED_HOLIDAYS: Incomplete + +class BrazilRecifeCity(BrazilPernambuco): + FIXED_HOLIDAYS: Incomplete + +class BrazilTeresinaCity(BrazilPiaui): + FIXED_HOLIDAYS: Incomplete + +class BrazilCuritibaCity(BrazilParana): + FIXED_HOLIDAYS: Incomplete + +class BrazilNatalCity(BrazilRioGrandeDoNorte): + FIXED_HOLIDAYS: Incomplete + +class BrazilPortoVelhoCity(BrazilRondonia): + FIXED_HOLIDAYS: Incomplete + +class BrazilBoaVistaCity(BrazilRoraima): + FIXED_HOLIDAYS: Incomplete + +class BrazilPortoAlegreCity(BrazilRioGrandeDoSul): + FIXED_HOLIDAYS: Incomplete + +class BrazilChapecoCity(BrazilSantaCatarina): + FIXED_HOLIDAYS: Incomplete + +class BrazilFlorianopolisCity(BrazilSantaCatarina): + FIXED_HOLIDAYS: Incomplete + +class BrazilJoinvilleCity(BrazilSantaCatarina): + FIXED_HOLIDAYS: Incomplete + +class BrazilAracajuCity(BrazilSergipe): + FIXED_HOLIDAYS: Incomplete + +class BrazilSorocabaCity(BrazilSaoPauloState): + FIXED_HOLIDAYS: Incomplete + +class BrazilPalmasCity(BrazilTocantins): + FIXED_HOLIDAYS: Incomplete + +class BrazilBankCalendar(Brazil): + include_fat_tuesday: ClassVar[bool] + fat_tuesday_label: ClassVar[str] + include_good_friday: ClassVar[bool] + include_ash_wednesday: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + def get_last_day_of_year_for_only_internal_bank_trans(self, year): ... + def get_variable_days(self, year): ... + def find_following_working_day(self, day): ... + +IBGE_TUPLE: Incomplete +IBGE_REGISTER: Incomplete diff --git a/stubs/workalendar/workalendar/america/canada.pyi b/stubs/workalendar/workalendar/america/canada.pyi new file mode 100644 index 000000000..af6479b51 --- /dev/null +++ b/stubs/workalendar/workalendar/america/canada.pyi @@ -0,0 +1,89 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Canada(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + shift_new_years_day: ClassVar[bool] + def get_variable_days(self, year): ... + +class LateFamilyDayMixin: + def get_family_day(self, year, label: str = "Family Day"): ... + +class VictoriaDayMixin: + def get_victoria_day(self, year): ... + +class AugustCivicHolidayMixin: + def get_civic_holiday(self, year, label: str = "Civic Holiday"): ... + +class ThanksgivingMixin: + def get_thanksgiving(self, year): ... + +class BoxingDayMixin: + def get_boxing_day(self, year): ... + +class StJeanBaptisteMixin: + def get_st_jean(self, year): ... + +class RemembranceDayShiftMixin: + def get_remembrance_day(self, year): ... + +class Ontario(BoxingDayMixin, ThanksgivingMixin, VictoriaDayMixin, LateFamilyDayMixin, AugustCivicHolidayMixin, Canada): + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class Quebec(VictoriaDayMixin, StJeanBaptisteMixin, ThanksgivingMixin, Canada): + include_easter_monday: ClassVar[bool] + def get_variable_days(self, year): ... + +class BritishColumbia(VictoriaDayMixin, AugustCivicHolidayMixin, ThanksgivingMixin, Canada): + include_good_friday: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_family_day(self, year): ... + def get_variable_days(self, year): ... + +class Alberta(LateFamilyDayMixin, VictoriaDayMixin, ThanksgivingMixin, Canada): + include_good_friday: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_variable_days(self, year): ... + +class Saskatchewan( + LateFamilyDayMixin, VictoriaDayMixin, RemembranceDayShiftMixin, AugustCivicHolidayMixin, ThanksgivingMixin, Canada +): + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class Manitoba(LateFamilyDayMixin, VictoriaDayMixin, AugustCivicHolidayMixin, ThanksgivingMixin, Canada): + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class NewBrunswick(AugustCivicHolidayMixin, Canada): + FIXED_HOLIDAYS: Incomplete + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class NovaScotia(RemembranceDayShiftMixin, LateFamilyDayMixin, Canada): + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class PrinceEdwardIsland(LateFamilyDayMixin, RemembranceDayShiftMixin, Canada): + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class Newfoundland(Canada): + include_good_friday: ClassVar[bool] + +class Yukon(VictoriaDayMixin, ThanksgivingMixin, Canada): + FIXED_HOLIDAYS: Incomplete + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class NorthwestTerritories(RemembranceDayShiftMixin, VictoriaDayMixin, ThanksgivingMixin, Canada): + FIXED_HOLIDAYS: Incomplete + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class Nunavut(VictoriaDayMixin, ThanksgivingMixin, RemembranceDayShiftMixin, Canada): + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/america/chile.pyi b/stubs/workalendar/workalendar/america/chile.pyi new file mode 100644 index 000000000..852ae4114 --- /dev/null +++ b/stubs/workalendar/workalendar/america/chile.pyi @@ -0,0 +1,14 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Chile(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/america/colombia.pyi b/stubs/workalendar/workalendar/america/colombia.pyi new file mode 100644 index 000000000..720884783 --- /dev/null +++ b/stubs/workalendar/workalendar/america/colombia.pyi @@ -0,0 +1,25 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Colombia(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + include_palm_sunday: ClassVar[bool] + include_holy_thursday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + def get_epiphany(self, year): ... + def get_saint_joseph(self, year): ... + def get_ascension(self, year): ... + def get_corpus_christi(self, year): ... + def get_sacred_heart(self, year): ... + def get_saint_peter_and_saint_paul(self, year): ... + def get_assumption(self, year): ... + def get_day_of_the_races(self, year): ... + def get_all_saints(self, year): ... + def get_cartagena_independence(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/america/el_salvador.pyi b/stubs/workalendar/workalendar/america/el_salvador.pyi new file mode 100644 index 000000000..18d6d7f04 --- /dev/null +++ b/stubs/workalendar/workalendar/america/el_salvador.pyi @@ -0,0 +1,11 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class ElSalvador(WesternCalendar): + include_labour_day: ClassVar[bool] + include_holy_thursday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/america/mexico.pyi b/stubs/workalendar/workalendar/america/mexico.pyi new file mode 100644 index 000000000..81f6da8d3 --- /dev/null +++ b/stubs/workalendar/workalendar/america/mexico.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Mexico(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + def get_variable_days(self, year): ... + def get_calendar_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/america/panama.pyi b/stubs/workalendar/workalendar/america/panama.pyi new file mode 100644 index 000000000..934b98c41 --- /dev/null +++ b/stubs/workalendar/workalendar/america/panama.pyi @@ -0,0 +1,12 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Panama(WesternCalendar): + include_labour_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/america/paraguay.pyi b/stubs/workalendar/workalendar/america/paraguay.pyi new file mode 100644 index 000000000..18e42d769 --- /dev/null +++ b/stubs/workalendar/workalendar/america/paraguay.pyi @@ -0,0 +1,17 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Paraguay(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + include_holy_thursday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + immaculate_conception_label: ClassVar[str] + def get_heroes_day(self, year): ... + def get_founding_of_asuncion(self, year): ... + def get_boqueron_battle_victory_day(self, year): ... + def get_fixed_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/asia/__init__.pyi b/stubs/workalendar/workalendar/asia/__init__.pyi new file mode 100644 index 000000000..92c649780 --- /dev/null +++ b/stubs/workalendar/workalendar/asia/__init__.pyi @@ -0,0 +1,11 @@ +from .china import China as China +from .hong_kong import HongKong as HongKong, HongKongBank as HongKongBank +from .israel import Israel as Israel +from .japan import Japan as Japan, JapanBank as JapanBank +from .kazakhstan import Kazakhstan as Kazakhstan +from .malaysia import Malaysia as Malaysia +from .philippines import Philippines as Philippines +from .qatar import Qatar as Qatar +from .singapore import Singapore as Singapore +from .south_korea import SouthKorea as SouthKorea +from .taiwan import Taiwan as Taiwan diff --git a/stubs/workalendar/workalendar/asia/china.pyi b/stubs/workalendar/workalendar/asia/china.pyi new file mode 100644 index 000000000..b0934335f --- /dev/null +++ b/stubs/workalendar/workalendar/asia/china.pyi @@ -0,0 +1,32 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import ChineseNewYearCalendar + +holidays: Incomplete +workdays: Incomplete + +class China(ChineseNewYearCalendar): + shift_new_years_day: ClassVar[bool] + include_chinese_new_year_eve: ClassVar[bool] + extra_working_days: Incomplete + def __init__(self, *args, **kwargs) -> None: ... + def get_calendar_holidays(self, year): ... + def get_variable_days(self, year): ... + def is_working_day(self, day, extra_working_days: Incomplete | None = None, extra_holidays: Incomplete | None = None): ... + def add_working_days( + self, + day, + delta, + extra_working_days: Incomplete | None = None, + extra_holidays: Incomplete | None = None, + keep_datetime: bool = False, + ): ... + def sub_working_days( + self, + day, + delta, + extra_working_days: Incomplete | None = None, + extra_holidays: Incomplete | None = None, + keep_datetime: bool = False, + ): ... diff --git a/stubs/workalendar/workalendar/asia/hong_kong.pyi b/stubs/workalendar/workalendar/asia/hong_kong.pyi new file mode 100644 index 000000000..14180c89e --- /dev/null +++ b/stubs/workalendar/workalendar/asia/hong_kong.pyi @@ -0,0 +1,24 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import ChineseNewYearCalendar, WesternMixin + +class HongKong(WesternMixin, ChineseNewYearCalendar): + include_labour_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + WEEKEND_DAYS: Incomplete + FIXED_HOLIDAYS: Incomplete + chinese_new_year_label: ClassVar[str] + include_chinese_second_day: ClassVar[bool] + chinese_second_day_label: ClassVar[str] + include_chinese_third_day: ClassVar[bool] + chinese_third_day_label: ClassVar[str] + shift_sunday_holidays: ClassVar[bool] + shift_start_cny_sunday: ClassVar[bool] + def get_variable_days(self, year): ... + +class HongKongBank(HongKong): + WEEKEND_DAYS: Incomplete diff --git a/stubs/workalendar/workalendar/asia/israel.pyi b/stubs/workalendar/workalendar/asia/israel.pyi new file mode 100644 index 000000000..5149ef1db --- /dev/null +++ b/stubs/workalendar/workalendar/asia/israel.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import Calendar + +class Israel(Calendar): + include_new_years_day: ClassVar[bool] + WEEKEND_DAYS: Incomplete + def get_variable_days(self, year): ... + def get_hebrew_independence_day(self, jewish_year): ... diff --git a/stubs/workalendar/workalendar/asia/japan.pyi b/stubs/workalendar/workalendar/asia/japan.pyi new file mode 100644 index 000000000..1f07fc708 --- /dev/null +++ b/stubs/workalendar/workalendar/asia/japan.pyi @@ -0,0 +1,12 @@ +from _typeshed import Incomplete + +from ..core import Calendar + +class Japan(Calendar): + WEEKEND_DAYS: Incomplete + FIXED_HOLIDAYS: Incomplete + def get_fixed_holidays(self, year): ... + def get_variable_days(self, year): ... + +class JapanBank(Japan): + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/asia/kazakhstan.pyi b/stubs/workalendar/workalendar/asia/kazakhstan.pyi new file mode 100644 index 000000000..52bd885fd --- /dev/null +++ b/stubs/workalendar/workalendar/asia/kazakhstan.pyi @@ -0,0 +1,30 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import IslamicCalendar, OrthodoxCalendar + +class Kazakhstan(OrthodoxCalendar, IslamicCalendar): + include_christmas: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_new_years_day: ClassVar[bool] + include_orthodox_christmas: ClassVar[bool] + include_epiphany: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_prophet_birthday: ClassVar[bool] + include_day_after_prophet_birthday: ClassVar[bool] + include_start_ramadan: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + length_eid_al_fitr: int + include_eid_al_adha: ClassVar[bool] + length_eid_al_adha: int + include_day_of_sacrifice: ClassVar[bool] + day_of_sacrifice_label: ClassVar[str] + include_islamic_new_year: ClassVar[bool] + include_laylat_al_qadr: ClassVar[bool] + include_nuzul_al_quran: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_fixed_holidays(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/asia/malaysia.pyi b/stubs/workalendar/workalendar/asia/malaysia.pyi new file mode 100644 index 000000000..a56e7373b --- /dev/null +++ b/stubs/workalendar/workalendar/asia/malaysia.pyi @@ -0,0 +1,25 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import ChineseNewYearCalendar, IslamicMixin + +class Malaysia(IslamicMixin, ChineseNewYearCalendar): + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + include_nuzul_al_quran: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + length_eid_al_fitr: int + eid_al_fitr_label: ClassVar[str] + include_day_of_sacrifice: ClassVar[bool] + day_of_sacrifice_label: ClassVar[str] + include_islamic_new_year: ClassVar[bool] + include_prophet_birthday: ClassVar[bool] + WEEKEND_DAYS: Incomplete + FIXED_HOLIDAYS: Incomplete + MSIA_DEEPAVALI: Incomplete + MSIA_THAIPUSAM: Incomplete + chinese_new_year_label: ClassVar[str] + include_chinese_second_day: ClassVar[bool] + chinese_second_day_label: ClassVar[str] + shift_sunday_holidays: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/asia/philippines.pyi b/stubs/workalendar/workalendar/asia/philippines.pyi new file mode 100644 index 000000000..af95cd4b3 --- /dev/null +++ b/stubs/workalendar/workalendar/asia/philippines.pyi @@ -0,0 +1,24 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import ChineseNewYearCalendar, IslamicMixin, WesternMixin + +class Philippines(WesternMixin, IslamicMixin, ChineseNewYearCalendar): + include_labour_day: ClassVar[bool] + include_new_years_eve: ClassVar[bool] + include_holy_thursday: ClassVar[bool] + holy_thursday_label: ClassVar[str] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + easter_saturday_label: ClassVar[str] + include_all_saints: ClassVar[bool] + include_all_souls: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + eid_al_fitr_label: ClassVar[str] + include_eid_al_adha: ClassVar[bool] + day_of_sacrifice_label: ClassVar[str] + WEEKEND_DAYS: Incomplete + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/asia/qatar.pyi b/stubs/workalendar/workalendar/asia/qatar.pyi new file mode 100644 index 000000000..814b6f8a3 --- /dev/null +++ b/stubs/workalendar/workalendar/asia/qatar.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import IslamicCalendar + +class Qatar(IslamicCalendar): + include_new_years_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_start_ramadan: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + length_eid_al_fitr: int + include_eid_al_adha: ClassVar[bool] + length_eid_al_adha: int diff --git a/stubs/workalendar/workalendar/asia/singapore.pyi b/stubs/workalendar/workalendar/asia/singapore.pyi new file mode 100644 index 000000000..5734c5120 --- /dev/null +++ b/stubs/workalendar/workalendar/asia/singapore.pyi @@ -0,0 +1,20 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import ChineseNewYearCalendar, IslamicMixin, WesternMixin + +class Singapore(WesternMixin, IslamicMixin, ChineseNewYearCalendar): + include_labour_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + eid_al_fitr_label: ClassVar[str] + include_day_of_sacrifice: ClassVar[bool] + day_of_sacrifice_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + WEEKEND_DAYS: Incomplete + DEEPAVALI: Incomplete + chinese_new_year_label: ClassVar[str] + include_chinese_second_day: ClassVar[bool] + chinese_second_day_label: ClassVar[str] + shift_sunday_holidays: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/asia/south_korea.pyi b/stubs/workalendar/workalendar/asia/south_korea.pyi new file mode 100644 index 000000000..12342a3b3 --- /dev/null +++ b/stubs/workalendar/workalendar/asia/south_korea.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import ChineseNewYearCalendar + +class SouthKorea(ChineseNewYearCalendar): + FIXED_HOLIDAYS: Incomplete + chinese_new_year_label: ClassVar[str] + include_chinese_new_year_eve: ClassVar[bool] + chinese_new_year_eve_label: ClassVar[str] + include_chinese_second_day: ClassVar[bool] + chinese_second_day_label: ClassVar[str] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/asia/taiwan.pyi b/stubs/workalendar/workalendar/asia/taiwan.pyi new file mode 100644 index 000000000..72eecc63e --- /dev/null +++ b/stubs/workalendar/workalendar/asia/taiwan.pyi @@ -0,0 +1,11 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import ChineseNewYearCalendar + +class Taiwan(ChineseNewYearCalendar): + FIXED_HOLIDAYS: Incomplete + include_chinese_new_year_eve: ClassVar[bool] + include_chinese_second_day: ClassVar[bool] + def is_working_day(self, day, *args, **kwargs): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/astronomy.pyi b/stubs/workalendar/workalendar/astronomy.pyi new file mode 100644 index 000000000..3c2e2eb22 --- /dev/null +++ b/stubs/workalendar/workalendar/astronomy.pyi @@ -0,0 +1 @@ +from .precomputed_astronomy import calculate_equinoxes as calculate_equinoxes, solar_term as solar_term diff --git a/stubs/workalendar/workalendar/core.pyi b/stubs/workalendar/workalendar/core.pyi new file mode 100644 index 000000000..9f083a4b5 --- /dev/null +++ b/stubs/workalendar/workalendar/core.pyi @@ -0,0 +1,201 @@ +from _typeshed import Incomplete +from collections.abc import Generator +from typing import ClassVar + +MON: Incomplete +TUE: Incomplete +WED: Incomplete +THU: Incomplete +FRI: Incomplete +SAT: Incomplete +SUN: Incomplete +ISO_MON: Incomplete +ISO_TUE: Incomplete +ISO_WED: Incomplete +ISO_THU: Incomplete +ISO_FRI: Incomplete +ISO_SAT: Incomplete +ISO_SUN: Incomplete + +def cleaned_date(day, keep_datetime: bool = False): ... +def daterange(start, end) -> Generator[Incomplete, None, None]: ... + +class ChristianMixin: + EASTER_METHOD: Incomplete + include_epiphany: ClassVar[bool] + include_clean_monday: ClassVar[bool] + include_annunciation: ClassVar[bool] + include_fat_tuesday: ClassVar[bool] + fat_tuesday_label: ClassVar[str | None] + include_ash_wednesday: ClassVar[bool] + ash_wednesday_label: ClassVar[str] + include_palm_sunday: ClassVar[bool] + include_holy_thursday: ClassVar[bool] + holy_thursday_label: ClassVar[str] + include_good_friday: ClassVar[bool] + good_friday_label: ClassVar[str] + include_easter_monday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + easter_saturday_label: ClassVar[str] + include_easter_sunday: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + immaculate_conception_label: ClassVar[str] + include_christmas: ClassVar[bool] + christmas_day_label: ClassVar[str] + include_christmas_eve: ClassVar[bool] + include_ascension: ClassVar[bool] + include_assumption: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_whit_monday: ClassVar[bool] + whit_monday_label: ClassVar[str] + include_corpus_christi: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_all_souls: ClassVar[bool] + def get_fat_tuesday(self, year): ... + def get_ash_wednesday(self, year): ... + def get_palm_sunday(self, year): ... + def get_holy_thursday(self, year): ... + def get_good_friday(self, year): ... + def get_clean_monday(self, year): ... + def get_easter_saturday(self, year): ... + def get_easter_sunday(self, year): ... + def get_easter_monday(self, year): ... + def get_ascension_thursday(self, year): ... + def get_whit_monday(self, year): ... + def get_whit_sunday(self, year): ... + def get_corpus_christi(self, year): ... + def shift_christmas_boxing_days(self, year): ... + def get_variable_days(self, year): ... + +class WesternMixin(ChristianMixin): + EASTER_METHOD: Incomplete + WEEKEND_DAYS: Incomplete + +class OrthodoxMixin(ChristianMixin): + EASTER_METHOD: Incomplete + WEEKEND_DAYS: Incomplete + include_orthodox_christmas: ClassVar[bool] + orthodox_christmas_day_label: ClassVar[str] + def get_fixed_holidays(self, year): ... + +class LunarMixin: + @staticmethod + def lunar(year, month, day): ... + +class ChineseNewYearMixin(LunarMixin): + include_chinese_new_year_eve: ClassVar[bool] + chinese_new_year_eve_label: ClassVar[str] + include_chinese_new_year: ClassVar[bool] + chinese_new_year_label: ClassVar[str] + include_chinese_second_day: ClassVar[bool] + chinese_second_day_label: ClassVar[str] + include_chinese_third_day: ClassVar[bool] + chinese_third_day_label: ClassVar[str] + shift_sunday_holidays: ClassVar[bool] + shift_start_cny_sunday: ClassVar[bool] + def get_chinese_new_year(self, year): ... + def get_variable_days(self, year): ... + def get_shifted_holidays(self, dates) -> Generator[Incomplete, None, None]: ... + def get_calendar_holidays(self, year): ... + +class CalverterMixin: + conversion_method: Incomplete + ISLAMIC_HOLIDAYS: Incomplete + def __init__(self, *args, **kwargs) -> None: ... + def converted(self, year): ... + def calverted_years(self, year): ... + def get_islamic_holidays(self): ... + def get_delta_islamic_holidays(self, year) -> None: ... + def get_variable_days(self, year): ... + +class IslamicMixin(CalverterMixin): + WEEKEND_DAYS: Incomplete + conversion_method: Incomplete + include_prophet_birthday: ClassVar[bool] + include_day_after_prophet_birthday: ClassVar[bool] + include_start_ramadan: ClassVar[bool] + include_eid_al_fitr: ClassVar[bool] + length_eid_al_fitr: int + eid_al_fitr_label: ClassVar[str] + include_eid_al_adha: ClassVar[bool] + eid_al_adha_label: ClassVar[str] + length_eid_al_adha: int + include_day_of_sacrifice: ClassVar[bool] + day_of_sacrifice_label: ClassVar[str] + include_islamic_new_year: ClassVar[bool] + include_laylat_al_qadr: ClassVar[bool] + include_nuzul_al_quran: ClassVar[bool] + def get_islamic_holidays(self): ... + +class CoreCalendar: + FIXED_HOLIDAYS: Incomplete + WEEKEND_DAYS: Incomplete + def __init__(self) -> None: ... + def name(cls): ... + def get_fixed_holidays(self, year): ... + def get_variable_days(self, year): ... + def get_calendar_holidays(self, year): ... + def holidays(self, year: Incomplete | None = None): ... + def get_holiday_label(self, day): ... + def holidays_set(self, year: Incomplete | None = None): ... + def get_weekend_days(self): ... + def is_working_day(self, day, extra_working_days: Incomplete | None = None, extra_holidays: Incomplete | None = None): ... + def is_holiday(self, day, extra_holidays: Incomplete | None = None): ... + def add_working_days( + self, + day, + delta, + extra_working_days: Incomplete | None = None, + extra_holidays: Incomplete | None = None, + keep_datetime: bool = False, + ): ... + def sub_working_days( + self, + day, + delta, + extra_working_days: Incomplete | None = None, + extra_holidays: Incomplete | None = None, + keep_datetime: bool = False, + ): ... + def find_following_working_day(self, day): ... + @staticmethod + def get_nth_weekday_in_month(year, month, weekday, n: int = 1, start: Incomplete | None = None): ... + @staticmethod + def get_last_weekday_in_month(year, month, weekday): ... + @staticmethod + def get_iso_week_date(year, week_nb, weekday=1): ... + @staticmethod + def get_first_weekday_after(day, weekday): ... + def get_working_days_delta( + self, + start, + end, + include_start: bool = False, + extra_working_days: Incomplete | None = None, + extra_holidays: Incomplete | None = None, + ): ... + def export_to_ical(self, period=[2000, 2030], target_path: Incomplete | None = None): ... + +class Calendar(CoreCalendar): + include_new_years_day: ClassVar[bool] + include_new_years_eve: ClassVar[bool] + shift_new_years_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + def __init__(self, **kwargs) -> None: ... + def get_fixed_holidays(self, year): ... + def get_variable_days(self, year): ... + +class WesternCalendar(WesternMixin, Calendar): ... +class OrthodoxCalendar(OrthodoxMixin, Calendar): ... + +class ChineseNewYearCalendar(ChineseNewYearMixin, Calendar): + WEEKEND_DAYS: Incomplete + +class IslamicCalendar(IslamicMixin, Calendar): ... + +class IslamoWesternCalendar(IslamicMixin, WesternMixin, Calendar): + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/europe/__init__.pyi b/stubs/workalendar/workalendar/europe/__init__.pyi new file mode 100644 index 000000000..e6446fa4a --- /dev/null +++ b/stubs/workalendar/workalendar/europe/__init__.pyi @@ -0,0 +1,138 @@ +from .austria import Austria as Austria +from .belarus import Belarus as Belarus +from .belgium import Belgium as Belgium +from .bulgaria import Bulgaria as Bulgaria +from .cayman_islands import CaymanIslands as CaymanIslands +from .croatia import Croatia as Croatia +from .cyprus import Cyprus as Cyprus +from .czech_republic import CzechRepublic as CzechRepublic +from .denmark import Denmark as Denmark +from .estonia import Estonia as Estonia +from .european_central_bank import EuropeanCentralBank as EuropeanCentralBank +from .finland import Finland as Finland +from .france import France as France, FranceAlsaceMoselle as FranceAlsaceMoselle +from .georgia import Georgia as Georgia +from .germany import ( + BadenWurttemberg as BadenWurttemberg, + Bavaria as Bavaria, + Berlin as Berlin, + Brandenburg as Brandenburg, + Bremen as Bremen, + Germany as Germany, + Hamburg as Hamburg, + Hesse as Hesse, + LowerSaxony as LowerSaxony, + MecklenburgVorpommern as MecklenburgVorpommern, + NorthRhineWestphalia as NorthRhineWestphalia, + RhinelandPalatinate as RhinelandPalatinate, + Saarland as Saarland, + Saxony as Saxony, + SaxonyAnhalt as SaxonyAnhalt, + SchleswigHolstein as SchleswigHolstein, + Thuringia as Thuringia, +) +from .greece import Greece as Greece +from .guernsey import Guernsey as Guernsey +from .hungary import Hungary as Hungary +from .iceland import Iceland as Iceland +from .ireland import Ireland as Ireland +from .italy import Italy as Italy +from .latvia import Latvia as Latvia +from .lithuania import Lithuania as Lithuania +from .luxembourg import Luxembourg as Luxembourg +from .malta import Malta as Malta +from .monaco import Monaco as Monaco +from .netherlands import Netherlands as Netherlands, NetherlandsWithSchoolHolidays as NetherlandsWithSchoolHolidays +from .norway import Norway as Norway +from .poland import Poland as Poland +from .portugal import Portugal as Portugal +from .romania import Romania as Romania +from .russia import Russia as Russia +from .scotland import ( + Aberdeen as Aberdeen, + Angus as Angus, + Arbroath as Arbroath, + Ayr as Ayr, + CarnoustieMonifieth as CarnoustieMonifieth, + Clydebank as Clydebank, + DumfriesGalloway as DumfriesGalloway, + Dundee as Dundee, + EastDunbartonshire as EastDunbartonshire, + Edinburgh as Edinburgh, + Elgin as Elgin, + Falkirk as Falkirk, + Fife as Fife, + Galashiels as Galashiels, + Glasgow as Glasgow, + Hawick as Hawick, + Inverclyde as Inverclyde, + Inverness as Inverness, + Kilmarnock as Kilmarnock, + Lanark as Lanark, + Linlithgow as Linlithgow, + Lochaber as Lochaber, + NorthLanarkshire as NorthLanarkshire, + Paisley as Paisley, + Perth as Perth, + Scotland as Scotland, + ScottishBorders as ScottishBorders, + SouthLanarkshire as SouthLanarkshire, + Stirling as Stirling, + WestDunbartonshire as WestDunbartonshire, +) +from .serbia import Serbia as Serbia +from .slovakia import Slovakia as Slovakia +from .slovenia import Slovenia as Slovenia +from .spain import ( + Andalusia as Andalusia, + Aragon as Aragon, + Asturias as Asturias, + BalearicIslands as BalearicIslands, + BasqueCountry as BasqueCountry, + CanaryIslands as CanaryIslands, + Cantabria as Cantabria, + CastileAndLeon as CastileAndLeon, + CastillaLaMancha as CastillaLaMancha, + Catalonia as Catalonia, + CommunityofMadrid as CommunityofMadrid, + Extremadura as Extremadura, + Galicia as Galicia, + LaRioja as LaRioja, + Murcia as Murcia, + Navarre as Navarre, + Spain as Spain, + ValencianCommunity as ValencianCommunity, +) +from .sweden import Sweden as Sweden +from .switzerland import ( + Aargau as Aargau, + AppenzellAusserrhoden as AppenzellAusserrhoden, + AppenzellInnerrhoden as AppenzellInnerrhoden, + BaselLandschaft as BaselLandschaft, + BaselStadt as BaselStadt, + Bern as Bern, + Fribourg as Fribourg, + Geneva as Geneva, + Glarus as Glarus, + Graubunden as Graubunden, + Jura as Jura, + Luzern as Luzern, + Neuchatel as Neuchatel, + Nidwalden as Nidwalden, + Obwalden as Obwalden, + Schaffhausen as Schaffhausen, + Schwyz as Schwyz, + Solothurn as Solothurn, + StGallen as StGallen, + Switzerland as Switzerland, + Thurgau as Thurgau, + Ticino as Ticino, + Uri as Uri, + Valais as Valais, + Vaud as Vaud, + Zug as Zug, + Zurich as Zurich, +) +from .turkey import Turkey as Turkey +from .ukraine import Ukraine as Ukraine +from .united_kingdom import UnitedKingdom as UnitedKingdom, UnitedKingdomNorthernIreland as UnitedKingdomNorthernIreland diff --git a/stubs/workalendar/workalendar/europe/austria.pyi b/stubs/workalendar/workalendar/europe/austria.pyi new file mode 100644 index 000000000..7501af31a --- /dev/null +++ b/stubs/workalendar/workalendar/europe/austria.pyi @@ -0,0 +1,20 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Austria(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + include_epiphany: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + include_christmas: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] diff --git a/stubs/workalendar/workalendar/europe/belarus.pyi b/stubs/workalendar/workalendar/europe/belarus.pyi new file mode 100644 index 000000000..edf02354c --- /dev/null +++ b/stubs/workalendar/workalendar/europe/belarus.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import OrthodoxCalendar + +class Belarus(OrthodoxCalendar): + include_labour_day: ClassVar[bool] + include_christmas: ClassVar[bool] + christmas_day_label: ClassVar[str] + orthodox_christmas_day_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + def get_radonitsa(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/belgium.pyi b/stubs/workalendar/workalendar/europe/belgium.pyi new file mode 100644 index 000000000..c2a81a0f7 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/belgium.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Belgium(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/bulgaria.pyi b/stubs/workalendar/workalendar/europe/bulgaria.pyi new file mode 100644 index 000000000..ca2f84092 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/bulgaria.pyi @@ -0,0 +1,24 @@ +from _typeshed import Incomplete +from collections.abc import Generator +from typing import ClassVar + +from ..core import OrthodoxCalendar + +class Bulgaria(OrthodoxCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_christmas: ClassVar[bool] + include_boxing_day: ClassVar[bool] + include_orthodox_christmas: ClassVar[bool] + boxing_day_label: ClassVar[str] + + def get_shifted_holidays(self, days) -> Generator[Incomplete, None, None]: ... + def get_fixed_holidays(self, year): ... + def shift_christmas_boxing_days(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/cayman_islands.pyi b/stubs/workalendar/workalendar/europe/cayman_islands.pyi new file mode 100644 index 000000000..d85d73732 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/cayman_islands.pyi @@ -0,0 +1,19 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +QUEENS_BIRTHDAY_EXCEPTIONS: Incomplete + +class CaymanIslands(WesternCalendar): + include_ash_wednesday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + shift_new_years_day: ClassVar[bool] + def get_variable_days(self, year): ... + def get_national_heroes_day(self, year): ... + def get_discovery_day(self, year): ... + def get_queens_birthday(self, year): ... + def get_constitution_day(self, year): ... + def get_remembrance_day(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/croatia.pyi b/stubs/workalendar/workalendar/europe/croatia.pyi new file mode 100644 index 000000000..7fa2c682a --- /dev/null +++ b/stubs/workalendar/workalendar/europe/croatia.pyi @@ -0,0 +1,19 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Croatia(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + include_epiphany: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_christmas: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + def get_fixed_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/cyprus.pyi b/stubs/workalendar/workalendar/europe/cyprus.pyi new file mode 100644 index 000000000..279a51dab --- /dev/null +++ b/stubs/workalendar/workalendar/europe/cyprus.pyi @@ -0,0 +1,20 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Cyprus(WesternCalendar): + include_labour_day: ClassVar[bool] + include_epiphany: ClassVar[bool] + include_clean_monday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_monday: ClassVar[bool] + whit_monday_label: ClassVar[str] + include_christmas_eve: ClassVar[bool] + include_christmas_day: ClassVar[bool] + include_boxing_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/czech_republic.pyi b/stubs/workalendar/workalendar/europe/czech_republic.pyi new file mode 100644 index 000000000..7e0c3510d --- /dev/null +++ b/stubs/workalendar/workalendar/europe/czech_republic.pyi @@ -0,0 +1,11 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class CzechRepublic(WesternCalendar): + include_labour_day: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_good_friday: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/denmark.pyi b/stubs/workalendar/workalendar/europe/denmark.pyi new file mode 100644 index 000000000..6832fcad8 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/denmark.pyi @@ -0,0 +1,19 @@ +from typing import ClassVar + +from ..core import WesternCalendar + +class Denmark(WesternCalendar): + include_holy_thursday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_whit_monday: ClassVar[bool] + whit_monday_label: ClassVar[str] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_christmas_eve: ClassVar[bool] + def get_store_bededag(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/estonia.pyi b/stubs/workalendar/workalendar/europe/estonia.pyi new file mode 100644 index 000000000..27c6a9941 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/estonia.pyi @@ -0,0 +1,15 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Estonia(WesternCalendar): + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_christmas_eve: ClassVar[bool] + include_christmas: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/europe/european_central_bank.pyi b/stubs/workalendar/workalendar/europe/european_central_bank.pyi new file mode 100644 index 000000000..953382cb4 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/european_central_bank.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class EuropeanCentralBank(WesternCalendar): + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/finland.pyi b/stubs/workalendar/workalendar/europe/finland.pyi new file mode 100644 index 000000000..1c831e52b --- /dev/null +++ b/stubs/workalendar/workalendar/europe/finland.pyi @@ -0,0 +1,22 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Finland(WesternCalendar): + include_epiphany: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_christmas_eve: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_midsummer_eve(self, year): ... + def get_midsummer_day(self, year): ... + def get_variable_all_saints(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/france.pyi b/stubs/workalendar/workalendar/europe/france.pyi new file mode 100644 index 000000000..eb5c6da62 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/france.pyi @@ -0,0 +1,17 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class France(WesternCalendar): + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_assumption: ClassVar[bool] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + +class FranceAlsaceMoselle(France): + include_good_friday: ClassVar[bool] + include_boxing_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/georgia.pyi b/stubs/workalendar/workalendar/europe/georgia.pyi new file mode 100644 index 000000000..cadc33c45 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/georgia.pyi @@ -0,0 +1,16 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import OrthodoxCalendar + +class Georgia(OrthodoxCalendar): + include_christmas: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_new_years_day: ClassVar[bool] + include_orthodox_christmas: ClassVar[bool] + include_epiphany: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/europe/germany.pyi b/stubs/workalendar/workalendar/europe/germany.pyi new file mode 100644 index 000000000..caad4bc70 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/germany.pyi @@ -0,0 +1,82 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Germany(WesternCalendar): + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + all_time_include_reformation_day: ClassVar[bool] + include_reformation_day_2018: ClassVar[bool] + def include_reformation_day(self, year): ... + def get_reformation_day(self, year): ... + def get_variable_days(self, year): ... + +class BadenWurttemberg(Germany): + include_epiphany: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_all_saints: ClassVar[bool] + +class Bavaria(Germany): + include_epiphany: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_assumption: ClassVar[bool] + +class Berlin(Germany): + def get_international_womens_day(self, year): ... + def get_liberation_day(self, year): ... + def get_variable_days(self, year): ... + +class Brandenburg(Germany): + include_easter_sunday: ClassVar[bool] + all_time_include_reformation_day: ClassVar[bool] + +class Bremen(Germany): + include_reformation_day_2018: ClassVar[bool] + +class Hamburg(Germany): + include_reformation_day_2018: ClassVar[bool] + +class Hesse(Germany): + include_corpus_christi: ClassVar[bool] + +class MecklenburgVorpommern(Germany): + all_time_include_reformation_day: ClassVar[bool] + +class LowerSaxony(Germany): + include_reformation_day_2018: ClassVar[bool] + +class NorthRhineWestphalia(Germany): + include_corpus_christi: ClassVar[bool] + include_all_saints: ClassVar[bool] + +class RhinelandPalatinate(Germany): + include_corpus_christi: ClassVar[bool] + include_all_saints: ClassVar[bool] + +class Saarland(Germany): + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + +class Saxony(Germany): + all_time_include_reformation_day: ClassVar[bool] + def get_repentance_day(self, year): ... + def get_variable_days(self, year): ... + +class SaxonyAnhalt(Germany): + include_epiphany: ClassVar[bool] + all_time_include_reformation_day: ClassVar[bool] + +class SchleswigHolstein(Germany): + include_reformation_day_2018: ClassVar[bool] + +class Thuringia(Germany): + all_time_include_reformation_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/greece.pyi b/stubs/workalendar/workalendar/europe/greece.pyi new file mode 100644 index 000000000..f8b81299b --- /dev/null +++ b/stubs/workalendar/workalendar/europe/greece.pyi @@ -0,0 +1,21 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import OrthodoxCalendar + +class Greece(OrthodoxCalendar): + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_epiphany: ClassVar[bool] + include_clean_monday: ClassVar[bool] + include_annunciation: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_whit_monday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_orthodox_christmas: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/guernsey.pyi b/stubs/workalendar/workalendar/europe/guernsey.pyi new file mode 100644 index 000000000..bea31918f --- /dev/null +++ b/stubs/workalendar/workalendar/europe/guernsey.pyi @@ -0,0 +1,14 @@ +from typing import ClassVar + +from ..core import WesternCalendar + +class Guernsey(WesternCalendar): + include_easter_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + shift_new_years_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + def get_spring_bank_holiday(self, year): ... + def get_early_may_bank_holiday(self, year): ... + def get_summer_bank_holiday(self, year): ... + def get_liberation_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/hungary.pyi b/stubs/workalendar/workalendar/europe/hungary.pyi new file mode 100644 index 000000000..735695236 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/hungary.pyi @@ -0,0 +1,19 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Hungary(WesternCalendar): + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_whit_monday: ClassVar[bool] + whit_monday_label: ClassVar[str] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_all_saints: ClassVar[bool] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/iceland.pyi b/stubs/workalendar/workalendar/europe/iceland.pyi new file mode 100644 index 000000000..0465547bf --- /dev/null +++ b/stubs/workalendar/workalendar/europe/iceland.pyi @@ -0,0 +1,19 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Iceland(WesternCalendar): + include_holy_thursday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_first_day_of_summer(self, year): ... + def get_commerce_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/ireland.pyi b/stubs/workalendar/workalendar/europe/ireland.pyi new file mode 100644 index 000000000..a58fbf138 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/ireland.pyi @@ -0,0 +1,13 @@ +from typing import ClassVar + +from ..core import WesternCalendar + +class Ireland(WesternCalendar): + include_easter_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + shift_new_years_day: ClassVar[bool] + def get_june_holiday(self, year): ... + def get_august_holiday(self, year): ... + include_whit_monday: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/italy.pyi b/stubs/workalendar/workalendar/europe/italy.pyi new file mode 100644 index 000000000..4948311d9 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/italy.pyi @@ -0,0 +1,16 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Italy(WesternCalendar): + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + include_immaculate_conception: ClassVar[bool] + include_epiphany: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] diff --git a/stubs/workalendar/workalendar/europe/latvia.pyi b/stubs/workalendar/workalendar/europe/latvia.pyi new file mode 100644 index 000000000..8e5b9ef2c --- /dev/null +++ b/stubs/workalendar/workalendar/europe/latvia.pyi @@ -0,0 +1,17 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Latvia(WesternCalendar): + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_christmas: ClassVar[bool] + include_boxing_day: ClassVar[bool] + def get_independence_days(self, year): ... + def get_republic_days(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/lithuania.pyi b/stubs/workalendar/workalendar/europe/lithuania.pyi new file mode 100644 index 000000000..80467c4dd --- /dev/null +++ b/stubs/workalendar/workalendar/europe/lithuania.pyi @@ -0,0 +1,20 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Lithuania(WesternCalendar): + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_christmas: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + def get_mothers_day(self, year): ... + def get_fathers_day(self, year): ... + include_all_souls: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/luxembourg.pyi b/stubs/workalendar/workalendar/europe/luxembourg.pyi new file mode 100644 index 000000000..0fc559592 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/luxembourg.pyi @@ -0,0 +1,15 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Luxembourg(WesternCalendar): + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_assumption: ClassVar[bool] + include_boxing_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_fixed_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/malta.pyi b/stubs/workalendar/workalendar/europe/malta.pyi new file mode 100644 index 000000000..887e960b4 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/malta.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Malta(WesternCalendar): + include_good_friday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + include_christmas: ClassVar[bool] + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/europe/monaco.pyi b/stubs/workalendar/workalendar/europe/monaco.pyi new file mode 100644 index 000000000..7e76bbd4b --- /dev/null +++ b/stubs/workalendar/workalendar/europe/monaco.pyi @@ -0,0 +1,15 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Monaco(WesternCalendar): + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_assumption: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/europe/netherlands.pyi b/stubs/workalendar/workalendar/europe/netherlands.pyi new file mode 100644 index 000000000..82e262c30 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/netherlands.pyi @@ -0,0 +1,37 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Netherlands(WesternCalendar): + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_carnival: Incomplete + def __init__(self, include_carnival: bool = False) -> None: ... + def get_king_queen_day(self, year): ... + def get_carnival_days(self, year): ... + def get_variable_days(self, year): ... + +FALL_HOLIDAYS_EARLY_REGIONS: Incomplete +SPRING_HOLIDAYS_EARLY_REGIONS: Incomplete +SUMMER_HOLIDAYS_EARLY_REGIONS: Incomplete +SUMMER_HOLIDAYS_LATE_REGIONS: Incomplete + +class NetherlandsWithSchoolHolidays(Netherlands): + region: Incomplete + carnival_instead_of_spring: Incomplete + + def __init__(self, region, carnival_instead_of_spring: bool = False, **kwargs) -> None: ... + def get_fall_holidays(self, year): ... + def get_christmas_holidays(self, year): ... + def get_spring_holidays(self, year): ... + def get_carnival_holidays(self, year): ... + def get_may_holidays(self, year): ... + def get_summer_holidays(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/norway.pyi b/stubs/workalendar/workalendar/europe/norway.pyi new file mode 100644 index 000000000..c969ad17d --- /dev/null +++ b/stubs/workalendar/workalendar/europe/norway.pyi @@ -0,0 +1,17 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Norway(WesternCalendar): + include_holy_thursday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/europe/poland.pyi b/stubs/workalendar/workalendar/europe/poland.pyi new file mode 100644 index 000000000..a356e6a4c --- /dev/null +++ b/stubs/workalendar/workalendar/europe/poland.pyi @@ -0,0 +1,16 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Poland(WesternCalendar): + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_boxing_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/portugal.pyi b/stubs/workalendar/workalendar/europe/portugal.pyi new file mode 100644 index 000000000..ed84921cf --- /dev/null +++ b/stubs/workalendar/workalendar/europe/portugal.pyi @@ -0,0 +1,16 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Portugal(WesternCalendar): + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_christmas: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + immaculate_conception_label: ClassVar[str] + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + def get_fixed_holidays(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/romania.pyi b/stubs/workalendar/workalendar/europe/romania.pyi new file mode 100644 index 000000000..ab612a284 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/romania.pyi @@ -0,0 +1,21 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import OrthodoxCalendar + +class Romania(OrthodoxCalendar): + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_whit_monday: ClassVar[bool] + include_christmas: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_orthodox_christmas: ClassVar[bool] + def get_childrens_day(self, year): ... + def get_liberation_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/russia.pyi b/stubs/workalendar/workalendar/europe/russia.pyi new file mode 100644 index 000000000..dca16c11e --- /dev/null +++ b/stubs/workalendar/workalendar/europe/russia.pyi @@ -0,0 +1,15 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import OrthodoxCalendar + +class Russia(OrthodoxCalendar): + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_christmas: ClassVar[bool] + covid19_2020_start: Incomplete + covid19_2020_end: Incomplete + labour_day_label: ClassVar[str] + def get_fixed_holidays(self, year): ... + def get_calendar_holidays(self, year): ... + def is_working_day(self, day, extra_working_days: Incomplete | None = None, extra_holidays: Incomplete | None = None): ... diff --git a/stubs/workalendar/workalendar/europe/scotland/__init__.pyi b/stubs/workalendar/workalendar/europe/scotland/__init__.pyi new file mode 100644 index 000000000..b05bf3802 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/scotland/__init__.pyi @@ -0,0 +1,147 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ...core import WesternCalendar +from .mixins import ( + AutumnHolidayFirstMondayOctober, + AutumnHolidayLastMondaySeptember, + AutumnHolidaySecondMondayOctober, + AutumnHolidayThirdMondayOctober, + AyrGoldCup, + BattleStirlingBridge, + FairHolidayFirstMondayAugust, + FairHolidayFirstMondayJuly, + FairHolidayFourthFridayJuly, + FairHolidayLastMondayJuly, + FairHolidayLastMondayJune, + FairHolidaySecondMondayJuly, + FairHolidayThirdMondayJuly, + LateSummer, + SpringHolidayFirstMondayApril, + SpringHolidayFirstMondayJune, + SpringHolidayLastMondayMay, + SpringHolidaySecondMondayApril, + SpringHolidayTuesdayAfterFirstMondayMay, + VictoriaDayFirstMondayJune, + VictoriaDayFourthMondayMay, + VictoriaDayLastMondayMay, +) + +class Scotland(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_spring_holiday: ClassVar[bool] + spring_holiday_label: ClassVar[str] + include_fair_holiday: ClassVar[bool] + include_autumn_holiday: ClassVar[bool] + include_saint_andrew: ClassVar[bool] + include_victoria_day: ClassVar[bool] + def __init__(self, *args, **kwargs) -> None: ... + def get_may_day(self, year): ... + def get_spring_holiday(self, year) -> None: ... + def get_fair_holiday(self, year) -> None: ... + def get_autumn_holiday(self, year) -> None: ... + def get_victoria_day(self, year) -> None: ... + def get_variable_days(self, year): ... + def get_fixed_holidays(self, year): ... + +class Aberdeen(FairHolidaySecondMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): + include_good_friday: ClassVar[bool] + +class Angus(SpringHolidaySecondMondayApril, AutumnHolidayLastMondaySeptember, Scotland): + include_saint_andrew: ClassVar[bool] + +class Arbroath(FairHolidayThirdMondayJuly, Scotland): ... + +class Ayr(SpringHolidayLastMondayMay, AyrGoldCup, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class CarnoustieMonifieth(SpringHolidayFirstMondayApril, AutumnHolidayFirstMondayOctober, Scotland): ... +class Clydebank(SpringHolidayTuesdayAfterFirstMondayMay, Scotland): ... + +class DumfriesGalloway(Scotland): + include_good_friday: ClassVar[bool] + +class Dundee( + SpringHolidayFirstMondayApril, VictoriaDayLastMondayMay, FairHolidayLastMondayJuly, AutumnHolidayFirstMondayOctober, Scotland +): ... + +class EastDunbartonshire(SpringHolidayLastMondayMay, FairHolidayThirdMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class Edinburgh(Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_spring_holiday: ClassVar[bool] + include_victoria_day: ClassVar[bool] + include_autumn_holiday: ClassVar[bool] + def get_spring_holiday(self, year): ... + def get_victoria_day(self, year): ... + def get_autumn_holiday(self, year): ... + +class Elgin(SpringHolidaySecondMondayApril, FairHolidayLastMondayJune, LateSummer, AutumnHolidayThirdMondayOctober, Scotland): ... + +class Falkirk(FairHolidayFirstMondayJuly, BattleStirlingBridge, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class Fife(VictoriaDayFirstMondayJune, FairHolidayThirdMondayJuly, AutumnHolidayThirdMondayOctober, Scotland): + include_saint_andrew: ClassVar[bool] + def get_variable_days(self, year): ... + +class Galashiels(SpringHolidayFirstMondayJune, Scotland): + def get_variable_days(self, year): ... + +class Glasgow(SpringHolidayLastMondayMay, FairHolidayThirdMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): + include_easter_monday: ClassVar[bool] + +class Hawick(Scotland): + def get_variable_days(self, year): ... + +class Inverclyde(LateSummer, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + def get_variable_days(self, year): ... + +class Inverness(SpringHolidayFirstMondayApril, FairHolidayFirstMondayJuly, AutumnHolidayFirstMondayOctober, Scotland): + def get_variable_days(self, year): ... + +class Kilmarnock(AyrGoldCup, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class Lanark(Scotland): + def get_variable_days(self, year): ... + +class Linlithgow(Scotland): + def get_variable_days(self, year): ... + +class Lochaber(Scotland): + def get_variable_days(self, year): ... + +class NorthLanarkshire(SpringHolidayLastMondayMay, FairHolidayThirdMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): + include_easter_monday: ClassVar[bool] + +class Paisley(VictoriaDayLastMondayMay, FairHolidayFirstMondayAugust, AutumnHolidayLastMondaySeptember, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class Perth( + SpringHolidayFirstMondayApril, VictoriaDayFourthMondayMay, BattleStirlingBridge, AutumnHolidayFirstMondayOctober, Scotland +): ... + +class ScottishBorders(SpringHolidayFirstMondayApril, FairHolidayFourthFridayJuly, AutumnHolidaySecondMondayOctober, Scotland): + include_saint_andrew: ClassVar[bool] + +class SouthLanarkshire(SpringHolidayLastMondayMay, FairHolidayThirdMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class Stirling(SpringHolidayTuesdayAfterFirstMondayMay, BattleStirlingBridge, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class WestDunbartonshire(AutumnHolidayLastMondaySeptember, Scotland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/scotland/mixins/__init__.pyi b/stubs/workalendar/workalendar/europe/scotland/mixins/__init__.pyi new file mode 100644 index 000000000..0d2ea52f3 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/scotland/mixins/__init__.pyi @@ -0,0 +1,39 @@ +from .autumn_holiday import ( + AutumnHolidayFirstMondayOctober as AutumnHolidayFirstMondayOctober, + AutumnHolidayLastMondaySeptember as AutumnHolidayLastMondaySeptember, + AutumnHolidaySecondMondayOctober as AutumnHolidaySecondMondayOctober, + AutumnHolidayThirdMondayOctober as AutumnHolidayThirdMondayOctober, +) +from .fair_holiday import ( + FairHolidayFirstMondayAugust as FairHolidayFirstMondayAugust, + FairHolidayFirstMondayJuly as FairHolidayFirstMondayJuly, + FairHolidayFourthFridayJuly as FairHolidayFourthFridayJuly, + FairHolidayLastMondayJuly as FairHolidayLastMondayJuly, + FairHolidayLastMondayJune as FairHolidayLastMondayJune, + FairHolidaySecondMondayJuly as FairHolidaySecondMondayJuly, + FairHolidayThirdMondayJuly as FairHolidayThirdMondayJuly, +) +from .spring_holiday import ( + SpringHolidayFirstMondayApril as SpringHolidayFirstMondayApril, + SpringHolidayFirstMondayJune as SpringHolidayFirstMondayJune, + SpringHolidayLastMondayMay as SpringHolidayLastMondayMay, + SpringHolidaySecondMondayApril as SpringHolidaySecondMondayApril, + SpringHolidayTuesdayAfterFirstMondayMay as SpringHolidayTuesdayAfterFirstMondayMay, +) +from .victoria_day import ( + VictoriaDayFirstMondayJune as VictoriaDayFirstMondayJune, + VictoriaDayFourthMondayMay as VictoriaDayFourthMondayMay, + VictoriaDayLastMondayMay as VictoriaDayLastMondayMay, +) + +class LateSummer: + def get_variable_days(self, year): ... + +class BattleStirlingBridge: + def get_variable_days(self, year): ... + +class AyrGoldCup: + def get_variable_days(self, year): ... + +# Names in __all__ with no definition: +# VictoriaDayTuesdayAfterFirstMondayMay diff --git a/stubs/workalendar/workalendar/europe/scotland/mixins/autumn_holiday.pyi b/stubs/workalendar/workalendar/europe/scotland/mixins/autumn_holiday.pyi new file mode 100644 index 000000000..a38964cd0 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/scotland/mixins/autumn_holiday.pyi @@ -0,0 +1,17 @@ +from typing import ClassVar + +class AutumHoliday: + include_autumn_holiday: ClassVar[bool] + autumn_holiday_label: ClassVar[str] + +class AutumnHolidayLastMondaySeptember(AutumHoliday): + def get_autumn_holiday(self, year): ... + +class AutumnHolidayFirstMondayOctober(AutumHoliday): + def get_autumn_holiday(self, year): ... + +class AutumnHolidaySecondMondayOctober(AutumHoliday): + def get_autumn_holiday(self, year): ... + +class AutumnHolidayThirdMondayOctober(AutumHoliday): + def get_autumn_holiday(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/scotland/mixins/fair_holiday.pyi b/stubs/workalendar/workalendar/europe/scotland/mixins/fair_holiday.pyi new file mode 100644 index 000000000..d9ac0ca7a --- /dev/null +++ b/stubs/workalendar/workalendar/europe/scotland/mixins/fair_holiday.pyi @@ -0,0 +1,26 @@ +from typing import ClassVar + +class FairHoliday: + include_fair_holiday: ClassVar[bool] + fair_holiday_label: ClassVar[str] + +class FairHolidayLastMondayJune(FairHoliday): + def get_fair_holiday(self, year): ... + +class FairHolidayFirstMondayJuly(FairHoliday): + def get_fair_holiday(self, year): ... + +class FairHolidaySecondMondayJuly(FairHoliday): + def get_fair_holiday(self, year): ... + +class FairHolidayThirdMondayJuly(FairHoliday): + def get_fair_holiday(self, year): ... + +class FairHolidayLastMondayJuly(FairHoliday): + def get_fair_holiday(self, year): ... + +class FairHolidayFourthFridayJuly(FairHoliday): + def get_fair_holiday(self, year): ... + +class FairHolidayFirstMondayAugust(FairHoliday): + def get_fair_holiday(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/scotland/mixins/spring_holiday.pyi b/stubs/workalendar/workalendar/europe/scotland/mixins/spring_holiday.pyi new file mode 100644 index 000000000..31a017952 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/scotland/mixins/spring_holiday.pyi @@ -0,0 +1,19 @@ +from typing import ClassVar + +class SpringHoliday: + include_spring_holiday: ClassVar[bool] + +class SpringHolidayFirstMondayApril(SpringHoliday): + def get_spring_holiday(self, year): ... + +class SpringHolidaySecondMondayApril(SpringHoliday): + def get_spring_holiday(self, year): ... + +class SpringHolidayTuesdayAfterFirstMondayMay(SpringHoliday): + def get_spring_holiday(self, year): ... + +class SpringHolidayLastMondayMay(SpringHoliday): + def get_spring_holiday(self, year): ... + +class SpringHolidayFirstMondayJune(SpringHoliday): + def get_spring_holiday(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/scotland/mixins/victoria_day.pyi b/stubs/workalendar/workalendar/europe/scotland/mixins/victoria_day.pyi new file mode 100644 index 000000000..8e9b93e67 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/scotland/mixins/victoria_day.pyi @@ -0,0 +1,14 @@ +from typing import ClassVar + +class VictoriaDayMixin: + include_victoria_day: ClassVar[bool] + victoria_day_label: ClassVar[str] + +class VictoriaDayFourthMondayMay(VictoriaDayMixin): + def get_victoria_day(self, year): ... + +class VictoriaDayLastMondayMay(VictoriaDayMixin): + def get_victoria_day(self, year): ... + +class VictoriaDayFirstMondayJune(VictoriaDayMixin): + def get_victoria_day(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/serbia.pyi b/stubs/workalendar/workalendar/europe/serbia.pyi new file mode 100644 index 000000000..dba579bc5 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/serbia.pyi @@ -0,0 +1,12 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import OrthodoxCalendar + +class Serbia(OrthodoxCalendar): + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_christmas: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/slovakia.pyi b/stubs/workalendar/workalendar/europe/slovakia.pyi new file mode 100644 index 000000000..799bd8ea3 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/slovakia.pyi @@ -0,0 +1,15 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Slovakia(WesternCalendar): + include_epiphany: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/europe/slovenia.pyi b/stubs/workalendar/workalendar/europe/slovenia.pyi new file mode 100644 index 000000000..b3335af5f --- /dev/null +++ b/stubs/workalendar/workalendar/europe/slovenia.pyi @@ -0,0 +1,14 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Slovenia(WesternCalendar): + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_christmas: ClassVar[bool] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/spain.pyi b/stubs/workalendar/workalendar/europe/spain.pyi new file mode 100644 index 000000000..ec1bbeccf --- /dev/null +++ b/stubs/workalendar/workalendar/europe/spain.pyi @@ -0,0 +1,86 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Spain(WesternCalendar): + include_epiphany: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + +class Andalusia(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class Aragon(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class CastileAndLeon(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class CastillaLaMancha(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class CanaryIslands(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class Catalonia(Spain): + include_easter_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + +class Extremadura(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class Galicia(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class BalearicIslands(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class LaRioja(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class CommunityofMadrid(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class Murcia(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class Navarre(Spain): + include_holy_thursday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class Asturias(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class BasqueCountry(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + +class Cantabria(Spain): + FIXED_HOLIDAYS: Incomplete + include_holy_thursday: ClassVar[bool] + +class ValencianCommunity(Spain): + FIXED_HOLIDAYS: Incomplete + include_easter_monday: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/sweden.pyi b/stubs/workalendar/workalendar/europe/sweden.pyi new file mode 100644 index 000000000..5ae11735c --- /dev/null +++ b/stubs/workalendar/workalendar/europe/sweden.pyi @@ -0,0 +1,22 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Sweden(WesternCalendar): + include_epiphany: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + whit_sunday_label: ClassVar[str] + include_christmas_eve: ClassVar[bool] + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_midsummer_eve(self, year): ... + def get_midsummer_day(self, year): ... + def get_variable_all_saints(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/switzerland.pyi b/stubs/workalendar/workalendar/europe/switzerland.pyi new file mode 100644 index 000000000..af9ab65cd --- /dev/null +++ b/stubs/workalendar/workalendar/europe/switzerland.pyi @@ -0,0 +1,188 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Switzerland(WesternCalendar): + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_ascension: ClassVar[bool] + include_whit_sunday: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_christmas: ClassVar[bool] + include_boxing_day: ClassVar[bool] + include_epiphany: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + include_berchtolds_day: ClassVar[bool] + include_st_josephs_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def has_berchtolds_day(self, year): ... + def get_federal_thanksgiving_monday(self, year): ... + def get_variable_days(self, year): ... + +class Aargau(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class AppenzellInnerrhoden(Switzerland): + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class AppenzellAusserrhoden(Switzerland): + include_labour_day: ClassVar[bool] + +class Bern(Switzerland): + include_berchtolds_day: ClassVar[bool] + +class BaselLandschaft(Switzerland): + include_labour_day: ClassVar[bool] + +class BaselStadt(Switzerland): + include_labour_day: ClassVar[bool] + +class Fribourg(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class Geneva(Switzerland): + include_boxing_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_genevan_fast(self, year): ... + def get_variable_days(self, year): ... + +class Glarus(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_all_saints: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + +class Graubunden(Switzerland): + include_epiphany: ClassVar[bool] + include_st_josephs_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class Jura(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_boxing_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + +class Luzern(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_epiphany: ClassVar[bool] + include_st_josephs_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class Neuchatel(Switzerland): + include_boxing_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def has_berchtolds_day(self, year): ... + def get_variable_days(self, year): ... + +class Nidwalden(Switzerland): + include_st_josephs_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class Obwalden(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + +class StGallen(Switzerland): + include_all_saints: ClassVar[bool] + +class Schaffhausen(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + +class Solothurn(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_st_josephs_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class Schwyz(Switzerland): + include_epiphany: ClassVar[bool] + include_st_josephs_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class Thurgau(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + +class Ticino(Switzerland): + include_good_friday: ClassVar[bool] + include_epiphany: ClassVar[bool] + include_st_josephs_day: ClassVar[bool] + include_labour_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + +class Uri(Switzerland): + include_epiphany: ClassVar[bool] + include_st_josephs_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class Vaud(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_boxing_day: ClassVar[bool] + def get_variable_days(self, year): ... + +class Valais(Switzerland): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_monday: ClassVar[bool] + include_st_josephs_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + include_boxing_day: ClassVar[bool] + +class Zug(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_corpus_christi: ClassVar[bool] + include_assumption: ClassVar[bool] + include_all_saints: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + +class Zurich(Switzerland): + include_berchtolds_day: ClassVar[bool] + include_labour_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/europe/turkey.pyi b/stubs/workalendar/workalendar/europe/turkey.pyi new file mode 100644 index 000000000..565866dbf --- /dev/null +++ b/stubs/workalendar/workalendar/europe/turkey.pyi @@ -0,0 +1,16 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import IslamicCalendar + +class Turkey(IslamicCalendar): + shift_new_years_day: ClassVar[bool] + WEEKEND_DAYS: Incomplete + include_eid_al_fitr: ClassVar[bool] + length_eid_al_fitr: int + include_eid_al_adha: ClassVar[bool] + length_eid_al_adha: int + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + FIXED_HOLIDAYS: Incomplete + def get_delta_islamic_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/ukraine.pyi b/stubs/workalendar/workalendar/europe/ukraine.pyi new file mode 100644 index 000000000..ab6c353ed --- /dev/null +++ b/stubs/workalendar/workalendar/europe/ukraine.pyi @@ -0,0 +1,17 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import OrthodoxCalendar + +class Ukraine(OrthodoxCalendar): + shift_sunday_holidays: ClassVar[bool] + shift_new_years_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + include_labour_day: ClassVar[bool] + labour_day_label: ClassVar[str] + include_christmas: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_whit_monday: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/europe/united_kingdom.pyi b/stubs/workalendar/workalendar/europe/united_kingdom.pyi new file mode 100644 index 000000000..8165013b1 --- /dev/null +++ b/stubs/workalendar/workalendar/europe/united_kingdom.pyi @@ -0,0 +1,20 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class UnitedKingdom(WesternCalendar): + include_good_friday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + shift_new_years_day: ClassVar[bool] + non_computable_holiday_dict: Incomplete + def get_early_may_bank_holiday(self, year): ... + def get_spring_bank_holiday(self, year): ... + def get_late_summer_bank_holiday(self, year): ... + def non_computable_holiday(self, year): ... + def get_variable_days(self, year): ... + +class UnitedKingdomNorthernIreland(UnitedKingdom): + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/exceptions.pyi b/stubs/workalendar/workalendar/exceptions.pyi new file mode 100644 index 000000000..16e91cf16 --- /dev/null +++ b/stubs/workalendar/workalendar/exceptions.pyi @@ -0,0 +1,6 @@ +class CalendarError(Exception): ... +class UnsupportedDateType(CalendarError): ... +class ISORegistryError(CalendarError): ... +class ICalExportError(CalendarError): ... +class ICalExportRangeError(ICalExportError): ... +class ICalExportTargetPathError(ICalExportError): ... diff --git a/stubs/workalendar/workalendar/oceania/__init__.pyi b/stubs/workalendar/workalendar/oceania/__init__.pyi new file mode 100644 index 000000000..4e04fcfa9 --- /dev/null +++ b/stubs/workalendar/workalendar/oceania/__init__.pyi @@ -0,0 +1,14 @@ +from .australia import ( + Australia as Australia, + AustralianCapitalTerritory as AustralianCapitalTerritory, + Hobart as Hobart, + NewSouthWales as NewSouthWales, + NorthernTerritory as NorthernTerritory, + Queensland as Queensland, + SouthAustralia as SouthAustralia, + Tasmania as Tasmania, + Victoria as Victoria, + WesternAustralia as WesternAustralia, +) +from .marshall_islands import MarshallIslands as MarshallIslands +from .new_zealand import NewZealand as NewZealand diff --git a/stubs/workalendar/workalendar/oceania/australia.pyi b/stubs/workalendar/workalendar/oceania/australia.pyi new file mode 100644 index 000000000..5074cf393 --- /dev/null +++ b/stubs/workalendar/workalendar/oceania/australia.pyi @@ -0,0 +1,93 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class Australia(WesternCalendar): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_queens_birthday: ClassVar[bool] + include_labour_day_october: ClassVar[bool] + include_boxing_day: ClassVar[bool] + shift_anzac_day: ClassVar[bool] + ANZAC_SHIFT_DAYS: Incomplete + FIXED_HOLIDAYS: Incomplete + def get_canberra_day(self, year): ... + def get_queens_birthday(self, year): ... + def get_labour_day_october(self, year): ... + def get_anzac_day(self, year): ... + def get_variable_days(self, year): ... + +class AustralianCapitalTerritory(Australia): + include_easter_saturday: ClassVar[bool] + include_queens_birthday: ClassVar[bool] + include_labour_day_october: ClassVar[bool] + include_boxing_day: ClassVar[bool] + def get_family_community_day(self, year): ... + def get_reconciliation_day(self, year): ... + def get_variable_days(self, year): ... + +class NewSouthWales(Australia): + include_queens_birthday: ClassVar[bool] + include_easter_saturday: ClassVar[bool] + include_easter_sunday: ClassVar[bool] + include_labour_day_october: ClassVar[bool] + include_boxing_day: ClassVar[bool] + ANZAC_SHIFT_DAYS: Incomplete + +class NorthernTerritory(Australia): + include_easter_saturday: ClassVar[bool] + include_queens_birthday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + ANZAC_SHIFT_DAYS: Incomplete + def get_may_day(self, year): ... + def get_picnic_day(self, year): ... + def get_variable_days(self, year): ... + +class Queensland(Australia): + include_easter_saturday: ClassVar[bool] + include_queens_birthday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + ANZAC_SHIFT_DAYS: Incomplete + def get_labour_day_may(self, year): ... + def get_variable_days(self, year): ... + +class SouthAustralia(Australia): + include_easter_saturday: ClassVar[bool] + include_queens_birthday: ClassVar[bool] + include_labour_day_october: ClassVar[bool] + ANZAC_SHIFT_DAYS: Incomplete + def get_adelaides_cup(self, year): ... + def get_proclamation_day(self, year): ... + def get_variable_days(self, year): ... + +class Tasmania(Australia): + include_queens_birthday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + shift_anzac_day: ClassVar[bool] + @property + def has_recreation_day(self): ... + def get_eight_hours_day(self, year): ... + def get_recreation_day(self, year): ... + def get_variable_days(self, year): ... + +class Hobart(Tasmania): + @property + def has_recreation_day(self): ... + def get_hobart(self, year): ... + def get_variable_days(self, year): ... + +class Victoria(Australia): + include_easter_saturday: ClassVar[bool] + include_queens_birthday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + shift_anzac_day: ClassVar[bool] + def get_labours_day_in_march(self, year): ... + def get_melbourne_cup(self, year): ... + def get_variable_days(self, year): ... + +class WesternAustralia(Australia): + include_boxing_day: ClassVar[bool] + def get_labours_day_in_march(self, year): ... + def get_western_australia_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/oceania/marshall_islands.pyi b/stubs/workalendar/workalendar/oceania/marshall_islands.pyi new file mode 100644 index 000000000..869776ae0 --- /dev/null +++ b/stubs/workalendar/workalendar/oceania/marshall_islands.pyi @@ -0,0 +1,9 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class MarshallIslands(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/oceania/new_zealand.pyi b/stubs/workalendar/workalendar/oceania/new_zealand.pyi new file mode 100644 index 000000000..b92eeda3b --- /dev/null +++ b/stubs/workalendar/workalendar/oceania/new_zealand.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class NewZealand(WesternCalendar): + include_good_friday: ClassVar[bool] + include_easter_monday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_queens_birthday(self, year): ... + def get_labour_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/precomputed_astronomy.pyi b/stubs/workalendar/workalendar/precomputed_astronomy.pyi new file mode 100644 index 000000000..2a87f3cb3 --- /dev/null +++ b/stubs/workalendar/workalendar/precomputed_astronomy.pyi @@ -0,0 +1,14 @@ +import datetime +from _typeshed import Incomplete +from collections.abc import Callable + +TZAwareDate = datetime.date +YEAR_INTERVAL: int +TIME_ZONES: Incomplete +pre_computed_equinoxes_path: Incomplete +pre_computed_solar_terms_path: Incomplete + +def fromisoformat(iso): ... +def create_astronomical_data(progress: Callable[[int], int] | None = None): ... +def calculate_equinoxes(year: int, timezone: str = "UTC") -> tuple[TZAwareDate, TZAwareDate]: ... +def solar_term(year: int, degrees: int, timezone: str = "UTC") -> TZAwareDate: ... diff --git a/stubs/workalendar/workalendar/registry.pyi b/stubs/workalendar/workalendar/registry.pyi new file mode 100644 index 000000000..ae17a15a5 --- /dev/null +++ b/stubs/workalendar/workalendar/registry.pyi @@ -0,0 +1,15 @@ +from _typeshed import Incomplete + +from .core import Calendar + +class IsoRegistry: + STANDARD_MODULES: Incomplete + region_registry: dict[str, Calendar] + def __init__(self, load_standard_modules: bool = True) -> None: ... + def register(self, iso_code, cls) -> None: ... + def load_module_from_items(self, module_name, items) -> None: ... + def get(self, iso_code): ... + def get_subregions(self, iso_code): ... + def get_calendars(self, region_codes: Incomplete | None = None, include_subregions: bool = False): ... + +registry: IsoRegistry diff --git a/stubs/workalendar/workalendar/registry_tools.pyi b/stubs/workalendar/workalendar/registry_tools.pyi new file mode 100644 index 000000000..8730de758 --- /dev/null +++ b/stubs/workalendar/workalendar/registry_tools.pyi @@ -0,0 +1 @@ +def iso_register(iso_code): ... diff --git a/stubs/workalendar/workalendar/skyfield_astronomy.pyi b/stubs/workalendar/workalendar/skyfield_astronomy.pyi new file mode 100644 index 000000000..b7b5d7450 --- /dev/null +++ b/stubs/workalendar/workalendar/skyfield_astronomy.pyi @@ -0,0 +1,12 @@ +from _typeshed import Incomplete + +hour: Incomplete +minute: Incomplete +second: Incomplete +newton_precision: Incomplete + +def calculate_equinoxes(year, timezone: str = ...): ... +def get_current_longitude(current_date, earth, sun): ... +def newton(f, x0, x1, precision=..., **func_kwargs): ... +def newton_angle_function(t, ts, target_angle, body1, body2): ... +def solar_term(year, degrees, timezone: str = ...): ... diff --git a/stubs/workalendar/workalendar/usa/__init__.pyi b/stubs/workalendar/workalendar/usa/__init__.pyi new file mode 100644 index 000000000..3c6eea9fa --- /dev/null +++ b/stubs/workalendar/workalendar/usa/__init__.pyi @@ -0,0 +1,70 @@ +from .alabama import ( + Alabama as Alabama, + AlabamaBaldwinCounty as AlabamaBaldwinCounty, + AlabamaMobileCounty as AlabamaMobileCounty, + AlabamaPerryCounty as AlabamaPerryCounty, +) +from .alaska import Alaska as Alaska +from .american_samoa import AmericanSamoa as AmericanSamoa +from .arizona import Arizona as Arizona +from .arkansas import Arkansas as Arkansas +from .california import ( + California as California, + CaliforniaBerkeley as CaliforniaBerkeley, + CaliforniaEducation as CaliforniaEducation, + CaliforniaSanFrancisco as CaliforniaSanFrancisco, + CaliforniaWestHollywood as CaliforniaWestHollywood, +) +from .colorado import Colorado as Colorado +from .connecticut import Connecticut as Connecticut +from .core import FederalReserveSystem as FederalReserveSystem, UnitedStates as UnitedStates +from .delaware import Delaware as Delaware +from .district_columbia import DistrictOfColumbia as DistrictOfColumbia +from .florida import ( + Florida as Florida, + FloridaCircuitCourts as FloridaCircuitCourts, + FloridaLegal as FloridaLegal, + FloridaMiamiDade as FloridaMiamiDade, +) +from .georgia import Georgia as Georgia +from .guam import Guam as Guam +from .hawaii import Hawaii as Hawaii +from .idaho import Idaho as Idaho +from .illinois import ChicagoIllinois as ChicagoIllinois, Illinois as Illinois +from .indiana import Indiana as Indiana +from .iowa import Iowa as Iowa +from .kansas import Kansas as Kansas +from .kentucky import Kentucky as Kentucky +from .louisiana import Louisiana as Louisiana +from .maine import Maine as Maine +from .maryland import Maryland as Maryland +from .massachusetts import Massachusetts as Massachusetts, SuffolkCountyMassachusetts as SuffolkCountyMassachusetts +from .michigan import Michigan as Michigan +from .minnesota import Minnesota as Minnesota +from .mississippi import Mississippi as Mississippi +from .missouri import Missouri as Missouri +from .montana import Montana as Montana +from .nebraska import Nebraska as Nebraska +from .nevada import Nevada as Nevada +from .new_hampshire import NewHampshire as NewHampshire +from .new_jersey import NewJersey as NewJersey +from .new_mexico import NewMexico as NewMexico +from .new_york import NewYork as NewYork +from .north_carolina import NorthCarolina as NorthCarolina +from .north_dakota import NorthDakota as NorthDakota +from .ohio import Ohio as Ohio +from .oklahoma import Oklahoma as Oklahoma +from .oregon import Oregon as Oregon +from .pennsylvania import Pennsylvania as Pennsylvania +from .rhode_island import RhodeIsland as RhodeIsland +from .south_carolina import SouthCarolina as SouthCarolina +from .south_dakota import SouthDakota as SouthDakota +from .tennessee import Tennessee as Tennessee +from .texas import Texas as Texas, TexasBase as TexasBase +from .utah import Utah as Utah +from .vermont import Vermont as Vermont +from .virginia import Virginia as Virginia +from .washington import Washington as Washington +from .west_virginia import WestVirginia as WestVirginia +from .wisconsin import Wisconsin as Wisconsin +from .wyoming import Wyoming as Wyoming diff --git a/stubs/workalendar/workalendar/usa/alabama.pyi b/stubs/workalendar/workalendar/usa/alabama.pyi new file mode 100644 index 000000000..790c0ebe3 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/alabama.pyi @@ -0,0 +1,20 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Alabama(UnitedStates): + include_confederation_day: ClassVar[bool] + martin_luther_king_label: ClassVar[str] + presidents_day_label: ClassVar[str] + columbus_day_label: ClassVar[str] + include_jefferson_davis_birthday: ClassVar[bool] + +class AlabamaBaldwinCounty(Alabama): + include_fat_tuesday: ClassVar[bool] + +class AlabamaMobileCounty(Alabama): + include_fat_tuesday: ClassVar[bool] + +class AlabamaPerryCounty(Alabama): + def get_obama_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/alaska.pyi b/stubs/workalendar/workalendar/usa/alaska.pyi new file mode 100644 index 000000000..f304b601a --- /dev/null +++ b/stubs/workalendar/workalendar/usa/alaska.pyi @@ -0,0 +1,9 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class Alaska(UnitedStates): + FIXED_HOLIDAYS: Incomplete + include_columbus_day: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/american_samoa.pyi b/stubs/workalendar/workalendar/usa/american_samoa.pyi new file mode 100644 index 000000000..b13477739 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/american_samoa.pyi @@ -0,0 +1,9 @@ +from typing import ClassVar + +from .core import UnitedStates + +class AmericanSamoa(UnitedStates): + include_boxing_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + def get_flag_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/arizona.pyi b/stubs/workalendar/workalendar/usa/arizona.pyi new file mode 100644 index 000000000..fb95adc76 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/arizona.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Arizona(UnitedStates): + martin_luther_king_label: ClassVar[str] + presidents_day_label: ClassVar[str] diff --git a/stubs/workalendar/workalendar/usa/arkansas.pyi b/stubs/workalendar/workalendar/usa/arkansas.pyi new file mode 100644 index 000000000..1ef2a55fd --- /dev/null +++ b/stubs/workalendar/workalendar/usa/arkansas.pyi @@ -0,0 +1,8 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Arkansas(UnitedStates): + include_christmas_eve: ClassVar[bool] + presidents_day_label: ClassVar[str] + include_columbus_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/california.pyi b/stubs/workalendar/workalendar/usa/california.pyi new file mode 100644 index 000000000..ff92d94aa --- /dev/null +++ b/stubs/workalendar/workalendar/usa/california.pyi @@ -0,0 +1,30 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class California(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + include_cesar_chavez_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] + shift_exceptions: Incomplete + def get_cesar_chavez_days(self, year): ... + +class CaliforniaEducation(California): + def get_variable_days(self, year): ... + +class CaliforniaBerkeley(California): + FIXED_HOLIDAYS: Incomplete + include_cesar_chavez_day: ClassVar[bool] + include_lincoln_birthday: ClassVar[bool] + include_columbus_day: ClassVar[bool] + columbus_day_label: ClassVar[str] + +class CaliforniaSanFrancisco(California): + include_cesar_chavez_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] + +class CaliforniaWestHollywood(California): + FIXED_HOLIDAYS: Incomplete + include_cesar_chavez_day: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/colorado.pyi b/stubs/workalendar/workalendar/usa/colorado.pyi new file mode 100644 index 000000000..8551ffd7b --- /dev/null +++ b/stubs/workalendar/workalendar/usa/colorado.pyi @@ -0,0 +1,3 @@ +from .core import UnitedStates + +class Colorado(UnitedStates): ... diff --git a/stubs/workalendar/workalendar/usa/connecticut.pyi b/stubs/workalendar/workalendar/usa/connecticut.pyi new file mode 100644 index 000000000..b8e396f98 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/connecticut.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Connecticut(UnitedStates): + include_good_friday: ClassVar[bool] + include_lincoln_birthday: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/core.pyi b/stubs/workalendar/workalendar/usa/core.pyi new file mode 100644 index 000000000..404a701aa --- /dev/null +++ b/stubs/workalendar/workalendar/usa/core.pyi @@ -0,0 +1,56 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from ..core import WesternCalendar + +class UnitedStates(WesternCalendar): + FIXED_HOLIDAYS: Incomplete + include_veterans_day: ClassVar[bool] + veterans_day_label: ClassVar[str] + martin_luther_king_label: ClassVar[str] + include_thanksgiving_friday: ClassVar[bool] + thanksgiving_friday_label: ClassVar[str] + include_federal_presidents_day: ClassVar[bool] + presidents_day_label: ClassVar[str] + include_lincoln_birthday: ClassVar[bool] + include_columbus_day: ClassVar[bool] + columbus_day_label: ClassVar[str] + include_confederation_day: ClassVar[bool] + include_jefferson_davis_birthday: ClassVar[bool] + include_cesar_chavez_day: ClassVar[bool] + include_patriots_day: ClassVar[bool] + boxing_day_label: ClassVar[str] + include_election_day_every_year: ClassVar[bool] + include_election_day_even: ClassVar[bool] + election_day_label: ClassVar[str] + include_inauguration_day: ClassVar[bool] + national_memorial_day_label: ClassVar[str] + include_fat_tuesday: ClassVar[bool] + fat_tuesday_label: ClassVar[str] + include_juneteenth: ClassVar[bool] + shift_exceptions: Incomplete + def shift(self, holidays, year): ... + @staticmethod + def is_presidential_year(year): ... + def get_election_date(self, year): ... + def get_election_day(self, year): ... + def get_thanksgiving_friday(self, year): ... + def get_confederate_day(self, year): ... + def get_jefferson_davis_birthday(self, year): ... + def get_martin_luther_king_date(self, year): ... + def get_martin_luther_king_day(self, year): ... + def get_presidents_day(self, year): ... + def get_cesar_chavez_days(self, year): ... + def get_patriots_day(self, year): ... + def get_columbus_day(self, year): ... + def get_lincoln_birthday(self, year): ... + def get_inauguration_date(self, year): ... + def get_national_memorial_day(self, year): ... + def get_juneteenth_day(self, year): ... + def get_variable_days(self, year): ... + def get_veterans_day(self, year): ... + def get_fixed_holidays(self, year): ... + def get_calendar_holidays(self, year): ... + +class FederalReserveSystem(UnitedStates): + include_juneteenth: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/delaware.pyi b/stubs/workalendar/workalendar/usa/delaware.pyi new file mode 100644 index 000000000..6ec1882bc --- /dev/null +++ b/stubs/workalendar/workalendar/usa/delaware.pyi @@ -0,0 +1,10 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Delaware(UnitedStates): + include_good_friday: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + include_federal_presidents_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] + include_election_day_even: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/district_columbia.pyi b/stubs/workalendar/workalendar/usa/district_columbia.pyi new file mode 100644 index 000000000..a8e5d5d72 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/district_columbia.pyi @@ -0,0 +1,8 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class DistrictOfColumbia(UnitedStates): + include_inauguration_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/usa/florida.pyi b/stubs/workalendar/workalendar/usa/florida.pyi new file mode 100644 index 000000000..1de35de8b --- /dev/null +++ b/stubs/workalendar/workalendar/usa/florida.pyi @@ -0,0 +1,45 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class HebrewHolidays: + hebrew_calendars: Incomplete + @classmethod + def get_hebrew_calendar(cls, gregorian_year): ... + @classmethod + def search_hebrew_calendar(cls, gregorian_year, hebrew_month, hebrew_day): ... + @classmethod + def get_rosh_hashanah(cls, year): ... + @classmethod + def get_yom_kippur(cls, year): ... + +class Florida(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + thanksgiving_friday_label: ClassVar[str] + include_columbus_day: ClassVar[bool] + include_federal_presidents_day: ClassVar[bool] + +class FloridaLegal(Florida): + FIXED_HOLIDAYS: Incomplete + include_fat_tuesday: ClassVar[bool] + include_lincoln_birthday: ClassVar[bool] + include_federal_presidents_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_confederation_day: ClassVar[bool] + include_jefferson_davis_birthday: ClassVar[bool] + include_columbus_day: ClassVar[bool] + columbus_day_label: ClassVar[str] + include_election_day_every_year: ClassVar[bool] + def __init__(self, *args, **kwargs) -> None: ... + def get_confederate_day(self, year): ... + def get_jefferson_davis_birthday(self, year): ... + +class FloridaCircuitCourts(HebrewHolidays, Florida): + include_federal_presidents_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + def get_variable_days(self, year): ... + +class FloridaMiamiDade(Florida): + include_federal_presidents_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/georgia.pyi b/stubs/workalendar/workalendar/usa/georgia.pyi new file mode 100644 index 000000000..d2589c5a5 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/georgia.pyi @@ -0,0 +1,13 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Georgia(UnitedStates): + include_confederation_day: ClassVar[bool] + include_federal_presidents_day: ClassVar[bool] + label_washington_birthday_december: ClassVar[str] + thanksgiving_friday_label: ClassVar[str] + def get_washington_birthday_december(self, year): ... + def get_confederate_day(self, year): ... + def get_robert_lee_birthday(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/guam.pyi b/stubs/workalendar/workalendar/usa/guam.pyi new file mode 100644 index 000000000..4c6a8da20 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/guam.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class Guam(UnitedStates): + FIXED_HOLIDAYS: Incomplete + include_all_souls: ClassVar[bool] + include_immaculate_conception: ClassVar[bool] + immaculate_conception_label: ClassVar[str] diff --git a/stubs/workalendar/workalendar/usa/hawaii.pyi b/stubs/workalendar/workalendar/usa/hawaii.pyi new file mode 100644 index 000000000..6026a3ff7 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/hawaii.pyi @@ -0,0 +1,12 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class Hawaii(UnitedStates): + include_good_friday: ClassVar[bool] + include_columbus_day: ClassVar[bool] + include_election_day_even: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + def get_statehood_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/idaho.pyi b/stubs/workalendar/workalendar/usa/idaho.pyi new file mode 100644 index 000000000..81d36b57e --- /dev/null +++ b/stubs/workalendar/workalendar/usa/idaho.pyi @@ -0,0 +1,6 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Idaho(UnitedStates): + martin_luther_king_label: ClassVar[str] diff --git a/stubs/workalendar/workalendar/usa/illinois.pyi b/stubs/workalendar/workalendar/usa/illinois.pyi new file mode 100644 index 000000000..0bf8abaf8 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/illinois.pyi @@ -0,0 +1,13 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Illinois(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + include_lincoln_birthday: ClassVar[bool] + include_election_day_even: ClassVar[bool] + +class ChicagoIllinois(Illinois): + include_thanksgiving_friday: ClassVar[bool] + def get_pulaski_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/indiana.pyi b/stubs/workalendar/workalendar/usa/indiana.pyi new file mode 100644 index 000000000..d083dcac3 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/indiana.pyi @@ -0,0 +1,15 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Indiana(UnitedStates): + include_good_friday: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + thanksgiving_friday_label: ClassVar[str] + include_federal_presidents_day: ClassVar[bool] + label_washington_birthday_december: ClassVar[str] + include_election_day_even: ClassVar[bool] + election_day_label: ClassVar[str] + def get_washington_birthday_december(self, year): ... + def get_primary_election_day(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/iowa.pyi b/stubs/workalendar/workalendar/usa/iowa.pyi new file mode 100644 index 000000000..b41b4bcba --- /dev/null +++ b/stubs/workalendar/workalendar/usa/iowa.pyi @@ -0,0 +1,8 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Iowa(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + include_columbus_day: ClassVar[bool] + include_federal_presidents_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/kansas.pyi b/stubs/workalendar/workalendar/usa/kansas.pyi new file mode 100644 index 000000000..512e3d464 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/kansas.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Kansas(UnitedStates): + include_federal_presidents_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/kentucky.pyi b/stubs/workalendar/workalendar/usa/kentucky.pyi new file mode 100644 index 000000000..4d9bcb5b2 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/kentucky.pyi @@ -0,0 +1,12 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class Kentucky(UnitedStates): + include_good_friday: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_columbus_day: ClassVar[bool] + include_federal_presidents_day: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/usa/louisiana.pyi b/stubs/workalendar/workalendar/usa/louisiana.pyi new file mode 100644 index 000000000..8b30f5010 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/louisiana.pyi @@ -0,0 +1,9 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Louisiana(UnitedStates): + include_good_friday: ClassVar[bool] + include_election_day_even: ClassVar[bool] + include_columbus_day: ClassVar[bool] + include_fat_tuesday: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/maine.pyi b/stubs/workalendar/workalendar/usa/maine.pyi new file mode 100644 index 000000000..48aaac455 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/maine.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Maine(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + include_patriots_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/maryland.pyi b/stubs/workalendar/workalendar/usa/maryland.pyi new file mode 100644 index 000000000..6cd1972ef --- /dev/null +++ b/stubs/workalendar/workalendar/usa/maryland.pyi @@ -0,0 +1,8 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Maryland(UnitedStates): + thanksgiving_friday_label: ClassVar[str] + include_thanksgiving_friday: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/massachusetts.pyi b/stubs/workalendar/workalendar/usa/massachusetts.pyi new file mode 100644 index 000000000..667526855 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/massachusetts.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class Massachusetts(UnitedStates): + include_patriots_day: ClassVar[bool] + +class SuffolkCountyMassachusetts(Massachusetts): + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/usa/michigan.pyi b/stubs/workalendar/workalendar/usa/michigan.pyi new file mode 100644 index 000000000..aa92a34b7 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/michigan.pyi @@ -0,0 +1,10 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Michigan(UnitedStates): + include_christmas_eve: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + include_election_day_even: ClassVar[bool] + include_columbus_day: ClassVar[bool] + def get_fixed_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/minnesota.pyi b/stubs/workalendar/workalendar/usa/minnesota.pyi new file mode 100644 index 000000000..2f69b2da3 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/minnesota.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Minnesota(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + include_columbus_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/mississippi.pyi b/stubs/workalendar/workalendar/usa/mississippi.pyi new file mode 100644 index 000000000..7649c4ac5 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/mississippi.pyi @@ -0,0 +1,11 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Mississippi(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + include_confederation_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] + martin_luther_king_label: ClassVar[str] + veterans_day_label: ClassVar[str] + national_memorial_day_label: ClassVar[str] diff --git a/stubs/workalendar/workalendar/usa/missouri.pyi b/stubs/workalendar/workalendar/usa/missouri.pyi new file mode 100644 index 000000000..aa2d32fa9 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/missouri.pyi @@ -0,0 +1,8 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class Missouri(UnitedStates): + FIXED_HOLIDAYS: Incomplete + include_lincoln_birthday: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/montana.pyi b/stubs/workalendar/workalendar/usa/montana.pyi new file mode 100644 index 000000000..a2477dc61 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/montana.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Montana(UnitedStates): + include_election_day_even: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/nebraska.pyi b/stubs/workalendar/workalendar/usa/nebraska.pyi new file mode 100644 index 000000000..1135ea26f --- /dev/null +++ b/stubs/workalendar/workalendar/usa/nebraska.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Nebraska(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/nevada.pyi b/stubs/workalendar/workalendar/usa/nevada.pyi new file mode 100644 index 000000000..5023243d9 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/nevada.pyi @@ -0,0 +1,9 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Nevada(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + thanksgiving_friday_label: ClassVar[str] + include_columbus_day: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/new_hampshire.pyi b/stubs/workalendar/workalendar/usa/new_hampshire.pyi new file mode 100644 index 000000000..4e21201e6 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/new_hampshire.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class NewHampshire(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + martin_luther_king_label: ClassVar[str] diff --git a/stubs/workalendar/workalendar/usa/new_jersey.pyi b/stubs/workalendar/workalendar/usa/new_jersey.pyi new file mode 100644 index 000000000..1f3c8df26 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/new_jersey.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class NewJersey(UnitedStates): + include_good_friday: ClassVar[bool] + include_election_day_every_year: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/new_mexico.pyi b/stubs/workalendar/workalendar/usa/new_mexico.pyi new file mode 100644 index 000000000..64fdf11e1 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/new_mexico.pyi @@ -0,0 +1,8 @@ +from typing import ClassVar + +from .core import UnitedStates + +class NewMexico(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + thanksgiving_friday_label: ClassVar[str] + include_federal_presidents_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/new_york.pyi b/stubs/workalendar/workalendar/usa/new_york.pyi new file mode 100644 index 000000000..0ad604845 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/new_york.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class NewYork(UnitedStates): + include_lincoln_birthday: ClassVar[bool] + include_election_day_every_year: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/north_carolina.pyi b/stubs/workalendar/workalendar/usa/north_carolina.pyi new file mode 100644 index 000000000..9b4c32089 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/north_carolina.pyi @@ -0,0 +1,13 @@ +from typing import ClassVar + +from .core import UnitedStates + +class NorthCarolina(UnitedStates): + include_good_friday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + include_federal_presidents_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] + def get_christmas_shifts(self, year): ... + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/north_dakota.pyi b/stubs/workalendar/workalendar/usa/north_dakota.pyi new file mode 100644 index 000000000..3010c52f0 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/north_dakota.pyi @@ -0,0 +1,7 @@ +from typing import ClassVar + +from .core import UnitedStates + +class NorthDakota(UnitedStates): + include_columbus_day: ClassVar[bool] + include_good_friday: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/ohio.pyi b/stubs/workalendar/workalendar/usa/ohio.pyi new file mode 100644 index 000000000..59e3a2b8b --- /dev/null +++ b/stubs/workalendar/workalendar/usa/ohio.pyi @@ -0,0 +1,3 @@ +from .core import UnitedStates + +class Ohio(UnitedStates): ... diff --git a/stubs/workalendar/workalendar/usa/oklahoma.pyi b/stubs/workalendar/workalendar/usa/oklahoma.pyi new file mode 100644 index 000000000..30309f737 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/oklahoma.pyi @@ -0,0 +1,8 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Oklahoma(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/oregon.pyi b/stubs/workalendar/workalendar/usa/oregon.pyi new file mode 100644 index 000000000..e9c626e59 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/oregon.pyi @@ -0,0 +1,6 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Oregon(UnitedStates): + include_columbus_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/pennsylvania.pyi b/stubs/workalendar/workalendar/usa/pennsylvania.pyi new file mode 100644 index 000000000..d58509664 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/pennsylvania.pyi @@ -0,0 +1,8 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Pennsylvania(UnitedStates): + include_good_friday: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + include_election_day_every_year: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/rhode_island.pyi b/stubs/workalendar/workalendar/usa/rhode_island.pyi new file mode 100644 index 000000000..1bed3bd1d --- /dev/null +++ b/stubs/workalendar/workalendar/usa/rhode_island.pyi @@ -0,0 +1,8 @@ +from typing import ClassVar + +from .core import UnitedStates + +class RhodeIsland(UnitedStates): + include_federal_presidents_day: ClassVar[bool] + include_election_day_even: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/south_carolina.pyi b/stubs/workalendar/workalendar/usa/south_carolina.pyi new file mode 100644 index 000000000..54877f149 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/south_carolina.pyi @@ -0,0 +1,11 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class SouthCarolina(UnitedStates): + FIXED_HOLIDAYS: Incomplete + include_thanksgiving_friday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_boxing_day: ClassVar[bool] + include_columbus_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/south_dakota.pyi b/stubs/workalendar/workalendar/usa/south_dakota.pyi new file mode 100644 index 000000000..3ed2cb52d --- /dev/null +++ b/stubs/workalendar/workalendar/usa/south_dakota.pyi @@ -0,0 +1,6 @@ +from typing import ClassVar + +from .core import UnitedStates + +class SouthDakota(UnitedStates): + columbus_day_label: ClassVar[str] diff --git a/stubs/workalendar/workalendar/usa/tennessee.pyi b/stubs/workalendar/workalendar/usa/tennessee.pyi new file mode 100644 index 000000000..2e63b1a6c --- /dev/null +++ b/stubs/workalendar/workalendar/usa/tennessee.pyi @@ -0,0 +1,8 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Tennessee(UnitedStates): + include_columbus_day: ClassVar[bool] + include_good_friday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/texas.pyi b/stubs/workalendar/workalendar/usa/texas.pyi new file mode 100644 index 000000000..49e69f48f --- /dev/null +++ b/stubs/workalendar/workalendar/usa/texas.pyi @@ -0,0 +1,25 @@ +from typing import ClassVar + +from .core import UnitedStates + +class TexasBase(UnitedStates): + include_columbus_day: ClassVar[bool] + texas_include_confederate_heroes: ClassVar[bool] + texas_include_independance_day: ClassVar[bool] + texas_san_jacinto_day: ClassVar[bool] + texas_emancipation_day: ClassVar[bool] + texas_lyndon_johnson_day: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_boxing_day: ClassVar[bool] + def get_fixed_holidays(self, year): ... + +class Texas(TexasBase): + texas_include_confederate_heroes: ClassVar[bool] + texas_include_independance_day: ClassVar[bool] + texas_san_jacinto_day: ClassVar[bool] + texas_emancipation_day: ClassVar[bool] + texas_lyndon_johnson_day: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + include_boxing_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/utah.pyi b/stubs/workalendar/workalendar/usa/utah.pyi new file mode 100644 index 000000000..42512bcd4 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/utah.pyi @@ -0,0 +1,6 @@ +from _typeshed import Incomplete + +from .core import UnitedStates + +class Utah(UnitedStates): + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/usa/vermont.pyi b/stubs/workalendar/workalendar/usa/vermont.pyi new file mode 100644 index 000000000..34bb02ea4 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/vermont.pyi @@ -0,0 +1,9 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class Vermont(UnitedStates): + FIXED_HOLIDAYS: Incomplete + include_columbus_day: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/virginia.pyi b/stubs/workalendar/workalendar/usa/virginia.pyi new file mode 100644 index 000000000..8fcbc0c20 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/virginia.pyi @@ -0,0 +1,11 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Virginia(UnitedStates): + include_christmas_eve: ClassVar[bool] + include_thanksgiving_friday: ClassVar[bool] + include_boxing_day: ClassVar[bool] + presidents_day_label: ClassVar[str] + include_thanksgiving_wednesday: ClassVar[bool] + def get_variable_days(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/washington.pyi b/stubs/workalendar/workalendar/usa/washington.pyi new file mode 100644 index 000000000..4fe6def92 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/washington.pyi @@ -0,0 +1,6 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Washington(UnitedStates): + include_columbus_day: ClassVar[bool] diff --git a/stubs/workalendar/workalendar/usa/west_virginia.pyi b/stubs/workalendar/workalendar/usa/west_virginia.pyi new file mode 100644 index 000000000..de2f05ff2 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/west_virginia.pyi @@ -0,0 +1,14 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class WestVirginia(UnitedStates): + include_thanksgiving_friday: ClassVar[bool] + include_election_day_even: ClassVar[bool] + election_day_label: ClassVar[str] + west_virginia_include_christmas_eve: ClassVar[bool] + west_virginia_include_nye: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete + shift_exceptions: Incomplete + def get_fixed_holidays(self, year): ... diff --git a/stubs/workalendar/workalendar/usa/wisconsin.pyi b/stubs/workalendar/workalendar/usa/wisconsin.pyi new file mode 100644 index 000000000..1b364dd4d --- /dev/null +++ b/stubs/workalendar/workalendar/usa/wisconsin.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete +from typing import ClassVar + +from .core import UnitedStates + +class Wisconsin(UnitedStates): + include_columbus_day: ClassVar[bool] + include_federal_presidents_day: ClassVar[bool] + include_christmas_eve: ClassVar[bool] + FIXED_HOLIDAYS: Incomplete diff --git a/stubs/workalendar/workalendar/usa/wyoming.pyi b/stubs/workalendar/workalendar/usa/wyoming.pyi new file mode 100644 index 000000000..acefb66f6 --- /dev/null +++ b/stubs/workalendar/workalendar/usa/wyoming.pyi @@ -0,0 +1,6 @@ +from typing import ClassVar + +from .core import UnitedStates + +class Wyoming(UnitedStates): + martin_luther_king_label: ClassVar[str]