Add stubs for workalendar (#10614)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
treasuryspring
2023-08-25 21:55:02 +02:00
committed by GitHub
parent a094aa09c2
commit ef63aec06b
153 changed files with 3437 additions and 1 deletions

View File

@@ -74,7 +74,8 @@
"stubs/ttkthemes",
"stubs/urllib3",
"stubs/vobject",
"stubs/WebOb"
"stubs/WebOb",
"stubs/workalendar"
],
"typeCheckingMode": "strict",
// TODO: Complete incomplete stubs

View File

@@ -0,0 +1,5 @@
workalendar.core.CoreCalendar.name
workalendar.europe.scotland.mixins.VictoriaDayTuesdayAfterFirstMondayMay
workalendar.skyfield_astronomy
workalendar.tests
workalendar.core.classproperty

View File

@@ -0,0 +1,2 @@
version = "17.0.*"
upstream_repository = "https://github.com/workalendar/workalendar"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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,
): ...

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -0,0 +1 @@
from .precomputed_astronomy import calculate_equinoxes as calculate_equinoxes, solar_term as solar_term

View File

@@ -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

View File

@@ -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

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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

View File

@@ -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]

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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]

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -0,0 +1,6 @@
class CalendarError(Exception): ...
class UnsupportedDateType(CalendarError): ...
class ISORegistryError(CalendarError): ...
class ICalExportError(CalendarError): ...
class ICalExportRangeError(ICalExportError): ...
class ICalExportTargetPathError(ICalExportError): ...

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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: ...

View File

@@ -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

View File

@@ -0,0 +1 @@
def iso_register(iso_code): ...

View File

@@ -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 = ...): ...

View File

@@ -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

View File

@@ -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): ...

Some files were not shown because too many files have changed in this diff Show More