mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 17:54:01 +08:00
[workalendar] Improve stubs (#14639)
This commit is contained in:
@@ -1,13 +1,3 @@
|
||||
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
|
||||
class Algeria(IslamicCalendar): ...
|
||||
|
||||
@@ -1,15 +1,6 @@
|
||||
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
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
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
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
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
|
||||
|
||||
@@ -1,18 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator
|
||||
from collections.abc import Generator, Iterable
|
||||
from typing import ClassVar
|
||||
|
||||
from ..core import IslamoWesternCalendar
|
||||
from ..core import _D, 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): ...
|
||||
def get_shifted_holidays(self, dates: Iterable[tuple[_D, str]]) -> Generator[tuple[_D, str]]: ...
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
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]
|
||||
class Madagascar(WesternCalendar): ...
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
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]
|
||||
class Mozambique(WesternCalendar): ...
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
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): ...
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
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]
|
||||
class SaoTomeAndPrincipe(WesternCalendar): ...
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
from ..core import WesternCalendar
|
||||
|
||||
class SouthAfrica(WesternCalendar):
|
||||
include_good_friday: ClassVar[bool]
|
||||
include_christmas: ClassVar[bool]
|
||||
def holidays(self, year=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): ...
|
||||
def get_easter_monday_or_family_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
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): ...
|
||||
class Tunisia(IslamicCalendar): ...
|
||||
|
||||
@@ -1,23 +1,12 @@
|
||||
from _typeshed import Incomplete
|
||||
import datetime
|
||||
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): ...
|
||||
def get_general_guemes_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_general_martin_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_soberania_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_diversidad_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_malvinas_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,18 +1,10 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
non_computable_holiday_dict: dict[int, list[tuple[datetime.date, str]]]
|
||||
def get_kadooment_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_emancipation_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def non_computable_holiday(self, year: int) -> list[tuple[datetime.date, str]] | None: ...
|
||||
def get_fixed_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
@@ -1,268 +1,93 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
from typing import ClassVar, Final
|
||||
|
||||
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_day: ClassVar[tuple[int, int]]
|
||||
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 BrazilAcre(Brazil): ...
|
||||
class BrazilAlagoas(Brazil): ...
|
||||
class BrazilAmapa(Brazil): ...
|
||||
class BrazilAmazonas(Brazil): ...
|
||||
class BrazilBahia(Brazil): ...
|
||||
class BrazilCeara(Brazil): ...
|
||||
class BrazilDistritoFederal(Brazil): ...
|
||||
class BrazilEspiritoSanto(Brazil): ...
|
||||
class BrazilGoias(Brazil): ...
|
||||
class BrazilMaranhao(Brazil): ...
|
||||
class BrazilMinasGerais(Brazil): ...
|
||||
class BrazilMatoGrosso(Brazil): ...
|
||||
class BrazilMatoGrossoDoSul(Brazil): ...
|
||||
class BrazilPara(Brazil): ...
|
||||
class BrazilParaiba(Brazil): ...
|
||||
class BrazilPernambuco(Brazil): ...
|
||||
class BrazilPiaui(Brazil): ...
|
||||
class BrazilParana(Brazil): ...
|
||||
|
||||
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): ...
|
||||
def get_dia_do_comercio(self, year: int) -> datetime.date | None: ...
|
||||
|
||||
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 BrazilRioGrandeDoNorte(Brazil): ...
|
||||
class BrazilRioGrandeDoSul(Brazil): ...
|
||||
class BrazilRondonia(Brazil): ...
|
||||
class BrazilRoraima(Brazil): ...
|
||||
class BrazilSantaCatarina(Brazil): ...
|
||||
class BrazilSaoPauloState(Brazil): ...
|
||||
|
||||
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 BrazilSergipe(Brazil): ...
|
||||
class BrazilTocantins(Brazil): ...
|
||||
class BrazilVitoriaCity(BrazilEspiritoSanto): ...
|
||||
class BrazilVilaVelhaCity(BrazilEspiritoSanto): ...
|
||||
class BrazilCariacicaCity(BrazilEspiritoSanto): ...
|
||||
class BrazilGuarapariCity(BrazilEspiritoSanto): ...
|
||||
|
||||
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 BrazilRioBrancoCity(BrazilAcre): ...
|
||||
class BrazilMaceioCity(BrazilAlagoas): ...
|
||||
class BrazilManausCity(BrazilAmazonas): ...
|
||||
class BrazilMacapaCity(BrazilAmapa): ...
|
||||
class BrazilSalvadorCity(BrazilBahia): ...
|
||||
class BrazilFortalezaCity(BrazilCeara): ...
|
||||
class BrazilGoianiaCity(BrazilGoias): ...
|
||||
class BrazilBeloHorizonteCity(BrazilMinasGerais): ...
|
||||
class BrazilCampoGrandeCity(BrazilMatoGrossoDoSul): ...
|
||||
class BrazilCuiabaCity(BrazilMatoGrosso): ...
|
||||
class BrazilBelemCity(BrazilPara): ...
|
||||
class BrazilJoaoPessoaCity(BrazilParaiba): ...
|
||||
class BrazilRecifeCity(BrazilPernambuco): ...
|
||||
class BrazilTeresinaCity(BrazilPiaui): ...
|
||||
class BrazilCuritibaCity(BrazilParana): ...
|
||||
class BrazilNatalCity(BrazilRioGrandeDoNorte): ...
|
||||
class BrazilPortoVelhoCity(BrazilRondonia): ...
|
||||
class BrazilBoaVistaCity(BrazilRoraima): ...
|
||||
class BrazilPortoAlegreCity(BrazilRioGrandeDoSul): ...
|
||||
class BrazilChapecoCity(BrazilSantaCatarina): ...
|
||||
class BrazilFlorianopolisCity(BrazilSantaCatarina): ...
|
||||
class BrazilJoinvilleCity(BrazilSantaCatarina): ...
|
||||
class BrazilAracajuCity(BrazilSergipe): ...
|
||||
class BrazilSorocabaCity(BrazilSaoPauloState): ...
|
||||
class BrazilPalmasCity(BrazilTocantins): ...
|
||||
|
||||
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): ...
|
||||
def get_last_day_of_year_for_only_internal_bank_trans(self, year: int) -> datetime.date: ...
|
||||
|
||||
IBGE_TUPLE: Incomplete
|
||||
IBGE_REGISTER: Incomplete
|
||||
IBGE_TUPLE: Final[tuple[tuple[str, type[Brazil]], ...]]
|
||||
IBGE_REGISTER: Final[dict[str, type[Brazil]]]
|
||||
|
||||
@@ -1,89 +1,45 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
from ..core import WesternCalendar
|
||||
|
||||
class Canada(WesternCalendar):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
shift_new_years_day: ClassVar[bool]
|
||||
def get_variable_days(self, year): ...
|
||||
class Canada(WesternCalendar): ...
|
||||
|
||||
class LateFamilyDayMixin:
|
||||
def get_family_day(self, year, label: str = "Family Day"): ...
|
||||
def get_family_day(self, year: int, label: str = "Family Day") -> tuple[datetime.date, str]: ...
|
||||
|
||||
class VictoriaDayMixin:
|
||||
def get_victoria_day(self, year): ...
|
||||
def get_victoria_day(self, year: int) -> tuple[datetime.date, str] | None: ...
|
||||
|
||||
class AugustCivicHolidayMixin:
|
||||
def get_civic_holiday(self, year, label: str = "Civic Holiday"): ...
|
||||
def get_civic_holiday(self, year: int, label: str = "Civic Holiday") -> tuple[datetime.date, str]: ...
|
||||
|
||||
class ThanksgivingMixin:
|
||||
def get_thanksgiving(self, year): ...
|
||||
def get_thanksgiving(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class BoxingDayMixin:
|
||||
def get_boxing_day(self, year): ...
|
||||
def get_boxing_day(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class StJeanBaptisteMixin:
|
||||
def get_st_jean(self, year): ...
|
||||
def get_st_jean(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class RemembranceDayShiftMixin:
|
||||
def get_remembrance_day(self, year): ...
|
||||
def get_remembrance_day(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
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 Ontario(BoxingDayMixin, ThanksgivingMixin, VictoriaDayMixin, LateFamilyDayMixin, AugustCivicHolidayMixin, Canada): ...
|
||||
class Quebec(VictoriaDayMixin, StJeanBaptisteMixin, ThanksgivingMixin, Canada): ...
|
||||
|
||||
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): ...
|
||||
def get_family_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class Alberta(LateFamilyDayMixin, VictoriaDayMixin, ThanksgivingMixin, Canada): ...
|
||||
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): ...
|
||||
): ...
|
||||
class Manitoba(LateFamilyDayMixin, VictoriaDayMixin, AugustCivicHolidayMixin, ThanksgivingMixin, Canada): ...
|
||||
class NewBrunswick(AugustCivicHolidayMixin, Canada): ...
|
||||
class NovaScotia(RemembranceDayShiftMixin, LateFamilyDayMixin, Canada): ...
|
||||
class PrinceEdwardIsland(LateFamilyDayMixin, RemembranceDayShiftMixin, Canada): ...
|
||||
class Newfoundland(Canada): ...
|
||||
class Yukon(VictoriaDayMixin, ThanksgivingMixin, Canada): ...
|
||||
class NorthwestTerritories(RemembranceDayShiftMixin, VictoriaDayMixin, ThanksgivingMixin, Canada): ...
|
||||
class Nunavut(VictoriaDayMixin, ThanksgivingMixin, RemembranceDayShiftMixin, Canada): ...
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
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): ...
|
||||
class Chile(WesternCalendar): ...
|
||||
|
||||
@@ -1,25 +1,14 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_epiphany(self, year: int) -> datetime.date: ...
|
||||
def get_saint_joseph(self, year: int) -> datetime.date: ...
|
||||
def get_ascension(self, year: int) -> datetime.date: ...
|
||||
def get_sacred_heart(self, year: int) -> datetime.date: ...
|
||||
def get_saint_peter_and_saint_paul(self, year: int) -> datetime.date: ...
|
||||
def get_assumption(self, year: int) -> datetime.date: ...
|
||||
def get_day_of_the_races(self, year: int) -> datetime.date: ...
|
||||
def get_all_saints(self, year: int) -> datetime.date: ...
|
||||
def get_cartagena_independence(self, year: int) -> datetime.date: ...
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
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
|
||||
class ElSalvador(WesternCalendar): ...
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
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): ...
|
||||
class Mexico(WesternCalendar): ...
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
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): ...
|
||||
class Panama(WesternCalendar): ...
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_heroes_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_founding_of_asuncion(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_boqueron_battle_victory_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,18 +1,11 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
from typing import Final
|
||||
|
||||
from ..core import ChineseNewYearCalendar
|
||||
|
||||
holidays: Incomplete
|
||||
workdays: Incomplete
|
||||
holidays: Final[dict[int, dict[str, list[tuple[int, int]]]]]
|
||||
workdays: Final[dict[int, dict[str, list[tuple[int, int]]]]]
|
||||
|
||||
class China(ChineseNewYearCalendar):
|
||||
shift_new_years_day: ClassVar[bool]
|
||||
include_chinese_new_year_eve: ClassVar[bool]
|
||||
extra_working_days: Incomplete
|
||||
extra_working_days: list[datetime.date]
|
||||
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=None, extra_holidays=None): ...
|
||||
def add_working_days(self, day, delta, extra_working_days=None, extra_holidays=None, keep_datetime: bool = False): ...
|
||||
def sub_working_days(self, day, delta, extra_working_days=None, extra_holidays=None, keep_datetime: bool = False): ...
|
||||
|
||||
@@ -1,24 +1,4 @@
|
||||
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
|
||||
class HongKong(WesternMixin, ChineseNewYearCalendar): ...
|
||||
class HongKongBank(HongKong): ...
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from ..core import Calendar
|
||||
|
||||
_HebrewDate: TypeAlias = Any | datetime.date # from `pyluach.dates` package
|
||||
|
||||
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): ...
|
||||
def get_hebrew_independence_day(self, jewish_year: int) -> list[tuple[_HebrewDate, str]]: ...
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
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
|
||||
class Japan(Calendar): ...
|
||||
class JapanBank(Japan): ...
|
||||
|
||||
@@ -1,30 +1,3 @@
|
||||
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): ...
|
||||
class Kazakhstan(OrthodoxCalendar, IslamicCalendar): ...
|
||||
|
||||
@@ -1,25 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
import datetime
|
||||
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): ...
|
||||
MSIA_DEEPAVALI: ClassVar[dict[int, datetime.date]]
|
||||
MSIA_THAIPUSAM: ClassVar[dict[int, datetime.date]]
|
||||
|
||||
@@ -1,24 +1,3 @@
|
||||
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
|
||||
class Philippines(WesternMixin, IslamicMixin, ChineseNewYearCalendar): ...
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
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
|
||||
class Qatar(IslamicCalendar): ...
|
||||
|
||||
@@ -1,20 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
import datetime
|
||||
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): ...
|
||||
DEEPAVALI: ClassVar[dict[int, datetime.date]]
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
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): ...
|
||||
class SouthKorea(ChineseNewYearCalendar): ...
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
from collections.abc import Iterable
|
||||
|
||||
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): ...
|
||||
def is_working_day(
|
||||
self,
|
||||
day: datetime.date | datetime.datetime,
|
||||
extra_working_days: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
extra_holidays: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
) -> bool: ...
|
||||
|
||||
@@ -1,27 +1,34 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
from _typeshed import Incomplete, StrPath
|
||||
from collections.abc import Generator, Iterable
|
||||
from typing import ClassVar, Final, Literal, TypeVar, overload
|
||||
|
||||
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
|
||||
_D = TypeVar("_D", datetime.date, datetime.datetime)
|
||||
_DT = TypeVar("_DT", datetime.date, datetime.datetime, datetime.timedelta)
|
||||
|
||||
def cleaned_date(day, keep_datetime: bool = False): ...
|
||||
def daterange(start, end) -> Generator[Incomplete, None, None]: ...
|
||||
MON: Final = 0
|
||||
TUE: Final = 1
|
||||
WED: Final = 2
|
||||
THU: Final = 3
|
||||
FRI: Final = 4
|
||||
SAT: Final = 5
|
||||
SUN: Final = 6
|
||||
ISO_MON: Final = 1
|
||||
ISO_TUE: Final = 2
|
||||
ISO_WED: Final = 3
|
||||
ISO_THU: Final = 4
|
||||
ISO_FRI: Final = 5
|
||||
ISO_SAT: Final = 6
|
||||
ISO_SUN: Final = 7
|
||||
|
||||
@overload
|
||||
def cleaned_date(day: _D, keep_datetime: Literal[True]) -> _D: ...
|
||||
@overload
|
||||
def cleaned_date(day: datetime.date | datetime.datetime, keep_datetime: Literal[False] | None = False) -> datetime.date: ...
|
||||
def daterange(start: _DT, end: _DT) -> Generator[_DT]: ...
|
||||
|
||||
class ChristianMixin:
|
||||
EASTER_METHOD: Incomplete
|
||||
EASTER_METHOD: ClassVar[Literal[1, 2, 3] | None]
|
||||
include_epiphany: ClassVar[bool]
|
||||
include_clean_monday: ClassVar[bool]
|
||||
include_annunciation: ClassVar[bool]
|
||||
@@ -54,36 +61,36 @@ class ChristianMixin:
|
||||
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): ...
|
||||
def get_fat_tuesday(self, year: int) -> datetime.date: ...
|
||||
def get_ash_wednesday(self, year: int) -> datetime.date: ...
|
||||
def get_palm_sunday(self, year: int) -> datetime.date: ...
|
||||
def get_holy_thursday(self, year: int) -> datetime.date: ...
|
||||
def get_good_friday(self, year: int) -> datetime.date: ...
|
||||
def get_clean_monday(self, year: int) -> datetime.date: ...
|
||||
def get_easter_saturday(self, year: int) -> datetime.date: ...
|
||||
def get_easter_sunday(self, year: int) -> datetime.date: ...
|
||||
def get_easter_monday(self, year: int) -> datetime.date: ...
|
||||
def get_ascension_thursday(self, year: int) -> datetime.date: ...
|
||||
def get_whit_monday(self, year: int) -> datetime.date: ...
|
||||
def get_whit_sunday(self, year: int) -> datetime.date: ...
|
||||
def get_corpus_christi(self, year: int) -> datetime.date: ...
|
||||
def shift_christmas_boxing_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_variable_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class WesternMixin(ChristianMixin):
|
||||
EASTER_METHOD: Incomplete
|
||||
WEEKEND_DAYS: Incomplete
|
||||
EASTER_METHOD: ClassVar[Literal[1, 2, 3]] = 3
|
||||
WEEKEND_DAYS: ClassVar[tuple[int, ...]]
|
||||
|
||||
class OrthodoxMixin(ChristianMixin):
|
||||
EASTER_METHOD: Incomplete
|
||||
WEEKEND_DAYS: Incomplete
|
||||
EASTER_METHOD: ClassVar[Literal[1, 2, 3]] = 2
|
||||
WEEKEND_DAYS: ClassVar[tuple[int, ...]]
|
||||
include_orthodox_christmas: ClassVar[bool]
|
||||
orthodox_christmas_day_label: ClassVar[str]
|
||||
def get_fixed_holidays(self, year): ...
|
||||
def get_fixed_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class LunarMixin:
|
||||
@staticmethod
|
||||
def lunar(year, month, day): ...
|
||||
def lunar(year: int, month: int, day: int) -> datetime.date: ...
|
||||
|
||||
class ChineseNewYearMixin(LunarMixin):
|
||||
include_chinese_new_year_eve: ClassVar[bool]
|
||||
@@ -96,23 +103,23 @@ class ChineseNewYearMixin(LunarMixin):
|
||||
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): ...
|
||||
def get_chinese_new_year(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_variable_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_shifted_holidays(self, dates: Iterable[tuple[_D, str]]) -> Generator[tuple[_D, str]]: ...
|
||||
def get_calendar_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class CalverterMixin:
|
||||
conversion_method: Incomplete
|
||||
ISLAMIC_HOLIDAYS: Incomplete
|
||||
ISLAMIC_HOLIDAYS: ClassVar[tuple[tuple[int, int, str], ...]]
|
||||
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): ...
|
||||
def converted(self, year: int) -> list[tuple[int, int, int]]: ...
|
||||
def calverted_years(self, year: int) -> list[int]: ...
|
||||
def get_islamic_holidays(self) -> tuple[tuple[int, int, str], ...]: ...
|
||||
def get_delta_islamic_holidays(self, year: int) -> datetime.timedelta | None: ...
|
||||
def get_variable_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class IslamicMixin(CalverterMixin):
|
||||
WEEKEND_DAYS: Incomplete
|
||||
WEEKEND_DAYS: ClassVar[tuple[int, ...]]
|
||||
conversion_method: Incomplete
|
||||
include_prophet_birthday: ClassVar[bool]
|
||||
include_day_after_prophet_birthday: ClassVar[bool]
|
||||
@@ -128,35 +135,67 @@ class IslamicMixin(CalverterMixin):
|
||||
include_islamic_new_year: ClassVar[bool]
|
||||
include_laylat_al_qadr: ClassVar[bool]
|
||||
include_nuzul_al_quran: ClassVar[bool]
|
||||
def get_islamic_holidays(self): ...
|
||||
def get_islamic_holidays(self) -> tuple[tuple[int, int, str]]: ...
|
||||
|
||||
class CoreCalendar:
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
WEEKEND_DAYS: Incomplete
|
||||
FIXED_HOLIDAYS: ClassVar[tuple[tuple[int, int, str], ...]]
|
||||
WEEKEND_DAYS: ClassVar[tuple[int, ...]]
|
||||
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=None): ...
|
||||
def get_holiday_label(self, day): ...
|
||||
def holidays_set(self, year=None): ...
|
||||
def get_weekend_days(self): ...
|
||||
def is_working_day(self, day, extra_working_days=None, extra_holidays=None): ...
|
||||
def is_holiday(self, day, extra_holidays=None): ...
|
||||
def add_working_days(self, day, delta, extra_working_days=None, extra_holidays=None, keep_datetime: bool = False): ...
|
||||
def sub_working_days(self, day, delta, extra_working_days=None, extra_holidays=None, keep_datetime: bool = False): ...
|
||||
def find_following_working_day(self, day): ...
|
||||
def name(cls) -> str: ...
|
||||
def get_fixed_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_variable_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_calendar_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def holidays(self, year: int | None = None) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_holiday_label(self, day: datetime.date | datetime.datetime) -> str | None: ...
|
||||
def holidays_set(self, year: int | None = None) -> set[datetime.date]: ...
|
||||
def get_weekend_days(self) -> tuple[int, ...]: ...
|
||||
def is_working_day(
|
||||
self,
|
||||
day: datetime.date | datetime.datetime,
|
||||
extra_working_days: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
extra_holidays: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
) -> bool: ...
|
||||
def is_holiday(
|
||||
self, day: datetime.date | datetime.datetime, extra_holidays: Iterable[datetime.date | datetime.datetime] | None = None
|
||||
) -> bool: ...
|
||||
def add_working_days(
|
||||
self,
|
||||
day: datetime.date | datetime.datetime,
|
||||
delta: int,
|
||||
extra_working_days: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
extra_holidays: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
keep_datetime: bool = False,
|
||||
) -> datetime.date: ...
|
||||
def sub_working_days(
|
||||
self,
|
||||
day: datetime.date | datetime.datetime,
|
||||
delta: int,
|
||||
extra_working_days: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
extra_holidays: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
keep_datetime: bool = False,
|
||||
) -> datetime.date: ...
|
||||
def find_following_working_day(self, day: datetime.date) -> datetime.date: ...
|
||||
@staticmethod
|
||||
def get_nth_weekday_in_month(year, month, weekday, n: int = 1, start=None): ...
|
||||
def get_nth_weekday_in_month(
|
||||
year: int, month: int, weekday: int, n: int = 1, start: datetime.date | Literal[False] | None = None
|
||||
) -> datetime.date | None: ...
|
||||
@staticmethod
|
||||
def get_last_weekday_in_month(year, month, weekday): ...
|
||||
def get_last_weekday_in_month(year: int, month: int, weekday: int) -> datetime.date: ...
|
||||
@staticmethod
|
||||
def get_iso_week_date(year, week_nb, weekday=1): ...
|
||||
def get_iso_week_date(year: int, week_nb: int, weekday: int = 1) -> datetime.date: ...
|
||||
@staticmethod
|
||||
def get_first_weekday_after(day, weekday): ...
|
||||
def get_working_days_delta(self, start, end, include_start: bool = False, extra_working_days=None, extra_holidays=None): ...
|
||||
def export_to_ical(self, period=[2000, 2030], target_path=None): ...
|
||||
def get_first_weekday_after(day: _D, weekday: int) -> _D: ...
|
||||
def get_working_days_delta(
|
||||
self,
|
||||
start: datetime.date | datetime.datetime,
|
||||
end: datetime.date | datetime.datetime,
|
||||
include_start: bool = False,
|
||||
extra_working_days: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
extra_holidays: Iterable[datetime.date | datetime.datetime] | None = None,
|
||||
) -> int: ...
|
||||
def export_to_ical(
|
||||
self, period: tuple[int, int] | list[int] = [2000, 2030], target_path: StrPath | None = None
|
||||
) -> str | None: ...
|
||||
|
||||
class Calendar(CoreCalendar):
|
||||
include_new_years_day: ClassVar[bool]
|
||||
@@ -165,16 +204,16 @@ class Calendar(CoreCalendar):
|
||||
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): ...
|
||||
def get_fixed_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_variable_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class WesternCalendar(WesternMixin, Calendar): ...
|
||||
class OrthodoxCalendar(OrthodoxMixin, Calendar): ...
|
||||
|
||||
class ChineseNewYearCalendar(ChineseNewYearMixin, Calendar):
|
||||
WEEKEND_DAYS: Incomplete
|
||||
WEEKEND_DAYS: ClassVar[tuple[int, ...]]
|
||||
|
||||
class IslamicCalendar(IslamicMixin, Calendar): ...
|
||||
|
||||
class IslamoWesternCalendar(IslamicMixin, WesternMixin, Calendar):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
FIXED_HOLIDAYS: ClassVar[tuple[tuple[int, int, str], ...]]
|
||||
|
||||
@@ -1,20 +1,3 @@
|
||||
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]
|
||||
class Austria(WesternCalendar): ...
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_radonitsa(self, year: int) -> datetime.date: ...
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
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]
|
||||
class Belgium(WesternCalendar): ...
|
||||
|
||||
@@ -1,24 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator
|
||||
from typing import ClassVar
|
||||
from collections.abc import Generator, Iterable
|
||||
|
||||
from ..core import OrthodoxCalendar
|
||||
from ..core import _D, 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): ...
|
||||
def get_shifted_holidays(self, days: Iterable[tuple[_D, str]]) -> Generator[tuple[_D, str]]: ...
|
||||
|
||||
@@ -1,19 +1,13 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
from typing import Final
|
||||
|
||||
from ..core import WesternCalendar
|
||||
|
||||
QUEENS_BIRTHDAY_EXCEPTIONS: Incomplete
|
||||
QUEENS_BIRTHDAY_EXCEPTIONS: Final[dict[int, datetime.date]]
|
||||
|
||||
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): ...
|
||||
def get_national_heroes_day(self, year: int) -> datetime.date: ...
|
||||
def get_discovery_day(self, year: int) -> datetime.date: ...
|
||||
def get_queens_birthday(self, year: int) -> datetime.date: ...
|
||||
def get_constitution_day(self, year: int) -> datetime.date: ...
|
||||
def get_remembrance_day(self, year: int) -> datetime.date: ...
|
||||
|
||||
@@ -1,19 +1,3 @@
|
||||
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): ...
|
||||
class Croatia(WesternCalendar): ...
|
||||
|
||||
@@ -1,20 +1,6 @@
|
||||
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): ...
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
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): ...
|
||||
class CzechRepublic(WesternCalendar): ...
|
||||
|
||||
@@ -1,19 +1,6 @@
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_store_bededag(self, year: int) -> datetime.date: ...
|
||||
|
||||
@@ -1,15 +1,3 @@
|
||||
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
|
||||
class Estonia(WesternCalendar): ...
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
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]
|
||||
class EuropeanCentralBank(WesternCalendar): ...
|
||||
|
||||
@@ -1,22 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_midsummer_eve(self, year: int) -> datetime.date: ...
|
||||
def get_midsummer_day(self, year: int) -> datetime.date: ...
|
||||
def get_variable_all_saints(self, year: int) -> datetime.date: ...
|
||||
|
||||
@@ -1,17 +1,4 @@
|
||||
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]
|
||||
class France(WesternCalendar): ...
|
||||
class FranceAlsaceMoselle(France): ...
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
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
|
||||
class Georgia(OrthodoxCalendar): ...
|
||||
|
||||
@@ -1,82 +1,34 @@
|
||||
from _typeshed import Incomplete
|
||||
import datetime
|
||||
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): ...
|
||||
def include_reformation_day(self, year: int) -> bool: ...
|
||||
def get_reformation_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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 BadenWurttemberg(Germany): ...
|
||||
class Bavaria(Germany): ...
|
||||
|
||||
class Berlin(Germany):
|
||||
def get_international_womens_day(self, year): ...
|
||||
def get_liberation_day(self, year): ...
|
||||
def get_variable_days(self, year): ...
|
||||
def get_international_womens_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_liberation_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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 Brandenburg(Germany): ...
|
||||
class Bremen(Germany): ...
|
||||
class Hamburg(Germany): ...
|
||||
class Hesse(Germany): ...
|
||||
class MecklenburgVorpommern(Germany): ...
|
||||
class LowerSaxony(Germany): ...
|
||||
class NorthRhineWestphalia(Germany): ...
|
||||
class RhinelandPalatinate(Germany): ...
|
||||
class Saarland(Germany): ...
|
||||
|
||||
class Saxony(Germany):
|
||||
all_time_include_reformation_day: ClassVar[bool]
|
||||
def get_repentance_day(self, year): ...
|
||||
def get_variable_days(self, year): ...
|
||||
def get_repentance_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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]
|
||||
class SaxonyAnhalt(Germany): ...
|
||||
class SchleswigHolstein(Germany): ...
|
||||
class Thuringia(Germany): ...
|
||||
|
||||
@@ -1,21 +1,3 @@
|
||||
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]
|
||||
class Greece(OrthodoxCalendar): ...
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_spring_bank_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_early_may_bank_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_summer_bank_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_liberation_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,19 +1,3 @@
|
||||
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): ...
|
||||
class Hungary(WesternCalendar): ...
|
||||
|
||||
@@ -1,19 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_first_day_of_summer(self, year: int) -> datetime.date: ...
|
||||
def get_commerce_day(self, year: int) -> datetime.date: ...
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_june_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_august_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
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]
|
||||
class Italy(WesternCalendar): ...
|
||||
|
||||
@@ -1,17 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_independence_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_republic_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
@@ -1,20 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_mothers_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_fathers_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,15 +1,3 @@
|
||||
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): ...
|
||||
class Luxembourg(WesternCalendar): ...
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
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
|
||||
class Malta(WesternCalendar): ...
|
||||
|
||||
@@ -1,15 +1,3 @@
|
||||
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
|
||||
class Monaco(WesternCalendar): ...
|
||||
|
||||
@@ -1,37 +1,32 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
from typing import Final, Literal
|
||||
|
||||
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
|
||||
include_carnival: bool
|
||||
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): ...
|
||||
def get_king_queen_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_carnival_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
FALL_HOLIDAYS_EARLY_REGIONS: Incomplete
|
||||
SPRING_HOLIDAYS_EARLY_REGIONS: Incomplete
|
||||
SUMMER_HOLIDAYS_EARLY_REGIONS: Incomplete
|
||||
SUMMER_HOLIDAYS_LATE_REGIONS: Incomplete
|
||||
FALL_HOLIDAYS_EARLY_REGIONS: Final[dict[int, list[str]]]
|
||||
SPRING_HOLIDAYS_EARLY_REGIONS: Final[dict[int, list[str]]]
|
||||
SUMMER_HOLIDAYS_EARLY_REGIONS: Final[dict[int, list[str]]]
|
||||
SUMMER_HOLIDAYS_LATE_REGIONS: Final[dict[int, list[str]]]
|
||||
|
||||
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): ...
|
||||
region: Literal["north", "middle", "south"]
|
||||
carnival_instead_of_spring: bool
|
||||
def __init__(
|
||||
self,
|
||||
region: Literal["north", "middle", "south"],
|
||||
carnival_instead_of_spring: bool = False,
|
||||
*,
|
||||
include_carnival: bool = ...,
|
||||
) -> None: ...
|
||||
def get_fall_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_christmas_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_spring_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_carnival_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_may_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_summer_holidays(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
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
|
||||
class Norway(WesternCalendar): ...
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
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]
|
||||
class Poland(WesternCalendar): ...
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
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): ...
|
||||
class Portugal(WesternCalendar): ...
|
||||
|
||||
@@ -1,21 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_childrens_day(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_liberation_day(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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=None, extra_holidays=None): ...
|
||||
covid19_2020_start: datetime.date
|
||||
covid19_2020_end: datetime.date
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
import datetime
|
||||
from typing import ClassVar
|
||||
|
||||
from ...core import WesternCalendar
|
||||
@@ -28,7 +28,6 @@ from .mixins import (
|
||||
)
|
||||
|
||||
class Scotland(WesternCalendar):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
include_spring_holiday: ClassVar[bool]
|
||||
spring_holiday_label: ClassVar[str]
|
||||
include_fair_holiday: ClassVar[bool]
|
||||
@@ -36,112 +35,42 @@ class Scotland(WesternCalendar):
|
||||
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]
|
||||
def get_may_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_spring_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_fair_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_autumn_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_victoria_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class Aberdeen(FairHolidaySecondMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): ...
|
||||
class Angus(SpringHolidaySecondMondayApril, AutumnHolidayLastMondaySeptember, Scotland): ...
|
||||
class Arbroath(FairHolidayThirdMondayJuly, Scotland): ...
|
||||
|
||||
class Ayr(SpringHolidayLastMondayMay, AyrGoldCup, Scotland):
|
||||
include_good_friday: ClassVar[bool]
|
||||
include_easter_monday: ClassVar[bool]
|
||||
|
||||
class Ayr(SpringHolidayLastMondayMay, AyrGoldCup, Scotland): ...
|
||||
class CarnoustieMonifieth(SpringHolidayFirstMondayApril, AutumnHolidayFirstMondayOctober, Scotland): ...
|
||||
class Clydebank(SpringHolidayTuesdayAfterFirstMondayMay, Scotland): ...
|
||||
|
||||
class DumfriesGalloway(Scotland):
|
||||
include_good_friday: ClassVar[bool]
|
||||
|
||||
class DumfriesGalloway(Scotland): ...
|
||||
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 EastDunbartonshire(SpringHolidayLastMondayMay, FairHolidayThirdMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): ...
|
||||
class Edinburgh(Scotland): ...
|
||||
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 Falkirk(FairHolidayFirstMondayJuly, BattleStirlingBridge, Scotland): ...
|
||||
class Fife(VictoriaDayFirstMondayJune, FairHolidayThirdMondayJuly, AutumnHolidayThirdMondayOctober, Scotland): ...
|
||||
class Galashiels(SpringHolidayFirstMondayJune, Scotland): ...
|
||||
class Glasgow(SpringHolidayLastMondayMay, FairHolidayThirdMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): ...
|
||||
class Hawick(Scotland): ...
|
||||
class Inverclyde(LateSummer, Scotland): ...
|
||||
class Inverness(SpringHolidayFirstMondayApril, FairHolidayFirstMondayJuly, AutumnHolidayFirstMondayOctober, Scotland): ...
|
||||
class Kilmarnock(AyrGoldCup, Scotland): ...
|
||||
class Lanark(Scotland): ...
|
||||
class Linlithgow(Scotland): ...
|
||||
class Lochaber(Scotland): ...
|
||||
class NorthLanarkshire(SpringHolidayLastMondayMay, FairHolidayThirdMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): ...
|
||||
class Paisley(VictoriaDayLastMondayMay, FairHolidayFirstMondayAugust, AutumnHolidayLastMondaySeptember, Scotland): ...
|
||||
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]
|
||||
class ScottishBorders(SpringHolidayFirstMondayApril, FairHolidayFourthFridayJuly, AutumnHolidaySecondMondayOctober, Scotland): ...
|
||||
class SouthLanarkshire(SpringHolidayLastMondayMay, FairHolidayThirdMondayJuly, AutumnHolidayLastMondaySeptember, Scotland): ...
|
||||
class Stirling(SpringHolidayTuesdayAfterFirstMondayMay, BattleStirlingBridge, Scotland): ...
|
||||
class WestDunbartonshire(AutumnHolidayLastMondaySeptember, Scotland): ...
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import datetime
|
||||
|
||||
from .autumn_holiday import (
|
||||
AutumnHolidayFirstMondayOctober as AutumnHolidayFirstMondayOctober,
|
||||
AutumnHolidayLastMondaySeptember as AutumnHolidayLastMondaySeptember,
|
||||
@@ -27,13 +29,13 @@ from .victoria_day import (
|
||||
)
|
||||
|
||||
class LateSummer:
|
||||
def get_variable_days(self, year): ...
|
||||
def get_variable_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class BattleStirlingBridge:
|
||||
def get_variable_days(self, year): ...
|
||||
def get_variable_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
class AyrGoldCup:
|
||||
def get_variable_days(self, year): ...
|
||||
def get_variable_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
|
||||
# Names in __all__ with no definition:
|
||||
# VictoriaDayTuesdayAfterFirstMondayMay
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import datetime
|
||||
from typing import ClassVar
|
||||
|
||||
class AutumHoliday:
|
||||
@@ -5,13 +6,13 @@ class AutumHoliday:
|
||||
autumn_holiday_label: ClassVar[str]
|
||||
|
||||
class AutumnHolidayLastMondaySeptember(AutumHoliday):
|
||||
def get_autumn_holiday(self, year): ...
|
||||
def get_autumn_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class AutumnHolidayFirstMondayOctober(AutumHoliday):
|
||||
def get_autumn_holiday(self, year): ...
|
||||
def get_autumn_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class AutumnHolidaySecondMondayOctober(AutumHoliday):
|
||||
def get_autumn_holiday(self, year): ...
|
||||
def get_autumn_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class AutumnHolidayThirdMondayOctober(AutumHoliday):
|
||||
def get_autumn_holiday(self, year): ...
|
||||
def get_autumn_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import datetime
|
||||
from typing import ClassVar
|
||||
|
||||
class FairHoliday:
|
||||
@@ -5,22 +6,22 @@ class FairHoliday:
|
||||
fair_holiday_label: ClassVar[str]
|
||||
|
||||
class FairHolidayLastMondayJune(FairHoliday):
|
||||
def get_fair_holiday(self, year): ...
|
||||
def get_fair_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class FairHolidayFirstMondayJuly(FairHoliday):
|
||||
def get_fair_holiday(self, year): ...
|
||||
def get_fair_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class FairHolidaySecondMondayJuly(FairHoliday):
|
||||
def get_fair_holiday(self, year): ...
|
||||
def get_fair_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class FairHolidayThirdMondayJuly(FairHoliday):
|
||||
def get_fair_holiday(self, year): ...
|
||||
def get_fair_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class FairHolidayLastMondayJuly(FairHoliday):
|
||||
def get_fair_holiday(self, year): ...
|
||||
def get_fair_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class FairHolidayFourthFridayJuly(FairHoliday):
|
||||
def get_fair_holiday(self, year): ...
|
||||
def get_fair_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class FairHolidayFirstMondayAugust(FairHoliday):
|
||||
def get_fair_holiday(self, year): ...
|
||||
def get_fair_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
import datetime
|
||||
from typing import ClassVar
|
||||
|
||||
class SpringHoliday:
|
||||
include_spring_holiday: ClassVar[bool]
|
||||
|
||||
class SpringHolidayFirstMondayApril(SpringHoliday):
|
||||
def get_spring_holiday(self, year): ...
|
||||
def get_spring_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class SpringHolidaySecondMondayApril(SpringHoliday):
|
||||
def get_spring_holiday(self, year): ...
|
||||
def get_spring_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class SpringHolidayTuesdayAfterFirstMondayMay(SpringHoliday):
|
||||
def get_spring_holiday(self, year): ...
|
||||
def get_spring_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class SpringHolidayLastMondayMay(SpringHoliday):
|
||||
def get_spring_holiday(self, year): ...
|
||||
def get_spring_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class SpringHolidayFirstMondayJune(SpringHoliday):
|
||||
def get_spring_holiday(self, year): ...
|
||||
def get_spring_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import datetime
|
||||
from typing import ClassVar
|
||||
|
||||
class VictoriaDayMixin:
|
||||
@@ -5,10 +6,10 @@ class VictoriaDayMixin:
|
||||
victoria_day_label: ClassVar[str]
|
||||
|
||||
class VictoriaDayFourthMondayMay(VictoriaDayMixin):
|
||||
def get_victoria_day(self, year): ...
|
||||
def get_victoria_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class VictoriaDayLastMondayMay(VictoriaDayMixin):
|
||||
def get_victoria_day(self, year): ...
|
||||
def get_victoria_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class VictoriaDayFirstMondayJune(VictoriaDayMixin):
|
||||
def get_victoria_day(self, year): ...
|
||||
def get_victoria_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
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]
|
||||
class Serbia(OrthodoxCalendar): ...
|
||||
|
||||
@@ -1,15 +1,3 @@
|
||||
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
|
||||
class Slovakia(WesternCalendar): ...
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
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): ...
|
||||
class Slovenia(WesternCalendar): ...
|
||||
|
||||
@@ -1,86 +1,20 @@
|
||||
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]
|
||||
class Spain(WesternCalendar): ...
|
||||
class Andalusia(Spain): ...
|
||||
class Aragon(Spain): ...
|
||||
class CastileAndLeon(Spain): ...
|
||||
class CastillaLaMancha(Spain): ...
|
||||
class CanaryIslands(Spain): ...
|
||||
class Catalonia(Spain): ...
|
||||
class Extremadura(Spain): ...
|
||||
class Galicia(Spain): ...
|
||||
class BalearicIslands(Spain): ...
|
||||
class LaRioja(Spain): ...
|
||||
class CommunityofMadrid(Spain): ...
|
||||
class Murcia(Spain): ...
|
||||
class Navarre(Spain): ...
|
||||
class Asturias(Spain): ...
|
||||
class BasqueCountry(Spain): ...
|
||||
class Cantabria(Spain): ...
|
||||
class ValencianCommunity(Spain): ...
|
||||
|
||||
@@ -1,22 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_midsummer_eve(self, year: int) -> datetime.date: ...
|
||||
def get_midsummer_day(self, year: int) -> datetime.date: ...
|
||||
def get_variable_all_saints(self, year: int) -> datetime.date: ...
|
||||
|
||||
@@ -1,188 +1,40 @@
|
||||
from _typeshed import Incomplete
|
||||
import datetime
|
||||
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): ...
|
||||
def has_berchtolds_day(self, year: int) -> bool: ...
|
||||
def get_federal_thanksgiving_monday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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 Aargau(Switzerland): ...
|
||||
class AppenzellInnerrhoden(Switzerland): ...
|
||||
class AppenzellAusserrhoden(Switzerland): ...
|
||||
class Bern(Switzerland): ...
|
||||
class BaselLandschaft(Switzerland): ...
|
||||
class BaselStadt(Switzerland): ...
|
||||
class Fribourg(Switzerland): ...
|
||||
|
||||
class Geneva(Switzerland):
|
||||
include_boxing_day: ClassVar[bool]
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
def get_genevan_fast(self, year): ...
|
||||
def get_variable_days(self, year): ...
|
||||
def get_genevan_fast(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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]
|
||||
class Glarus(Switzerland): ...
|
||||
class Graubunden(Switzerland): ...
|
||||
class Jura(Switzerland): ...
|
||||
class Luzern(Switzerland): ...
|
||||
class Neuchatel(Switzerland): ...
|
||||
class Nidwalden(Switzerland): ...
|
||||
class Obwalden(Switzerland): ...
|
||||
class StGallen(Switzerland): ...
|
||||
class Schaffhausen(Switzerland): ...
|
||||
class Solothurn(Switzerland): ...
|
||||
class Schwyz(Switzerland): ...
|
||||
class Thurgau(Switzerland): ...
|
||||
class Ticino(Switzerland): ...
|
||||
class Uri(Switzerland): ...
|
||||
class Vaud(Switzerland): ...
|
||||
class Valais(Switzerland): ...
|
||||
class Zug(Switzerland): ...
|
||||
class Zurich(Switzerland): ...
|
||||
|
||||
@@ -1,16 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_delta_islamic_holidays(self, year: int) -> datetime.timedelta: ...
|
||||
|
||||
@@ -1,17 +1,6 @@
|
||||
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): ...
|
||||
|
||||
@@ -1,20 +1,12 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
non_computable_holiday_dict: dict[int, list[tuple[datetime.date, str]]]
|
||||
def get_early_may_bank_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_spring_bank_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_late_summer_bank_holiday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def non_computable_holiday(self, year: int) -> tuple[datetime.date, str] | None: ...
|
||||
|
||||
class UnitedKingdomNorthernIreland(UnitedKingdom):
|
||||
def get_variable_days(self, year): ...
|
||||
class UnitedKingdomNorthernIreland(UnitedKingdom): ...
|
||||
|
||||
@@ -1,93 +1,48 @@
|
||||
from _typeshed import Incomplete
|
||||
import datetime
|
||||
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): ...
|
||||
ANZAC_SHIFT_DAYS: ClassVar[tuple[int, ...]]
|
||||
def get_canberra_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_queens_birthday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_labour_day_october(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_anzac_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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): ...
|
||||
def get_family_community_day(self, year: int) -> tuple[datetime.date, str] | None: ...
|
||||
def get_reconciliation_day(self, year: int) -> tuple[datetime.date, str] | None: ...
|
||||
|
||||
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 NewSouthWales(Australia): ...
|
||||
|
||||
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): ...
|
||||
def get_may_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_picnic_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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): ...
|
||||
def get_labour_day_may(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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): ...
|
||||
def get_adelaides_cup(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_proclamation_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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): ...
|
||||
def has_recreation_day(self) -> bool: ...
|
||||
def get_eight_hours_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_recreation_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class Hobart(Tasmania):
|
||||
@property
|
||||
def has_recreation_day(self): ...
|
||||
def get_hobart(self, year): ...
|
||||
def get_variable_days(self, year): ...
|
||||
def get_hobart(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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): ...
|
||||
def get_labours_day_in_march(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_melbourne_cup(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
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): ...
|
||||
def get_labours_day_in_march(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_western_australia_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
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): ...
|
||||
class MarshallIslands(WesternCalendar): ...
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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): ...
|
||||
def get_queens_birthday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_labour_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import datetime
|
||||
from _typeshed import Incomplete
|
||||
import pathlib
|
||||
from collections.abc import Callable
|
||||
from typing import Final
|
||||
|
||||
TZAwareDate = datetime.date
|
||||
YEAR_INTERVAL: int
|
||||
TIME_ZONES: Incomplete
|
||||
pre_computed_equinoxes_path: Incomplete
|
||||
pre_computed_solar_terms_path: Incomplete
|
||||
YEAR_INTERVAL: Final = 30
|
||||
TIME_ZONES: Final = ("America/Santiago", "Asia/Hong_Kong", "Asia/Taipei", "Asia/Tokyo")
|
||||
pre_computed_equinoxes_path: Final[pathlib.Path]
|
||||
pre_computed_solar_terms_path: Final[pathlib.Path]
|
||||
|
||||
def fromisoformat(iso): ...
|
||||
def create_astronomical_data(progress: Callable[[int], int] | None = None): ...
|
||||
def fromisoformat(iso: str) -> datetime.date: ...
|
||||
def create_astronomical_data(progress: Callable[[int], int] | None = None) -> None: ...
|
||||
def calculate_equinoxes(year: int, timezone: str = "UTC") -> tuple[TZAwareDate, TZAwareDate]: ...
|
||||
def solar_term(year: int, degrees: int, timezone: str = "UTC") -> TZAwareDate: ...
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterable
|
||||
from typing import ClassVar
|
||||
|
||||
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=None, include_subregions: bool = False): ...
|
||||
STANDARD_MODULES: ClassVar[tuple[str, ...]]
|
||||
region_registry: dict[str, type[Calendar]]
|
||||
def __init__(self, load_standard_modules: bool | None = True) -> None: ...
|
||||
def register(self, iso_code: str, cls: type[Calendar]) -> None: ...
|
||||
def load_module_from_items(self, module_name: str, items: Iterable[str]) -> None: ...
|
||||
def get(self, iso_code: str) -> type[Calendar]: ...
|
||||
def get_subregions(self, iso_code: str) -> dict[str, type[Calendar]]: ...
|
||||
def get_calendars(
|
||||
self, region_codes: Iterable[str] | None = None, include_subregions: bool | None = False
|
||||
) -> dict[str, type[Calendar]]: ...
|
||||
|
||||
registry: IsoRegistry
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
def iso_register(iso_code): ...
|
||||
from collections.abc import Callable
|
||||
from typing import TypeVar
|
||||
|
||||
_T = TypeVar("_T", bound=type)
|
||||
|
||||
def iso_register(iso_code: str) -> Callable[[_T], _T]: ...
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
import datetime
|
||||
from _typeshed import Incomplete
|
||||
from math import _SupportsFloatOrIndex
|
||||
from typing import Final
|
||||
|
||||
hour: Incomplete
|
||||
minute: Incomplete
|
||||
second: Incomplete
|
||||
newton_precision: Incomplete
|
||||
hour: Final[float]
|
||||
minute: Final[float]
|
||||
second: Final[float]
|
||||
newton_precision: Final[float]
|
||||
|
||||
def calculate_equinoxes(year, timezone: str = ...): ...
|
||||
def calculate_equinoxes(year, timezone: str = "UTC") -> tuple[Incomplete, Incomplete]: ...
|
||||
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 = ...): ...
|
||||
def solar_term(year: int, degrees: _SupportsFloatOrIndex, timezone: str = "UTC") -> datetime.date: ...
|
||||
|
||||
@@ -1,20 +1,10 @@
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
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 Alabama(UnitedStates): ...
|
||||
class AlabamaBaldwinCounty(Alabama): ...
|
||||
class AlabamaMobileCounty(Alabama): ...
|
||||
|
||||
class AlabamaPerryCounty(Alabama):
|
||||
def get_obama_day(self, year): ...
|
||||
def get_variable_days(self, year): ...
|
||||
def get_obama_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class Alaska(UnitedStates):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
include_columbus_day: ClassVar[bool]
|
||||
def get_variable_days(self, year): ...
|
||||
class Alaska(UnitedStates): ...
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class AmericanSamoa(UnitedStates):
|
||||
include_boxing_day: ClassVar[bool]
|
||||
boxing_day_label: ClassVar[str]
|
||||
def get_flag_day(self, year): ...
|
||||
def get_variable_days(self, year): ...
|
||||
def get_flag_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class Arizona(UnitedStates):
|
||||
martin_luther_king_label: ClassVar[str]
|
||||
presidents_day_label: ClassVar[str]
|
||||
class Arizona(UnitedStates): ...
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class Arkansas(UnitedStates):
|
||||
include_christmas_eve: ClassVar[bool]
|
||||
presidents_day_label: ClassVar[str]
|
||||
include_columbus_day: ClassVar[bool]
|
||||
class Arkansas(UnitedStates): ...
|
||||
|
||||
@@ -1,30 +1,11 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class California(UnitedStates):
|
||||
include_thanksgiving_friday: ClassVar[bool]
|
||||
include_cesar_chavez_day: ClassVar[bool]
|
||||
include_columbus_day: ClassVar[bool]
|
||||
shift_exceptions: Incomplete
|
||||
def get_cesar_chavez_days(self, year): ...
|
||||
shift_exceptions: ClassVar[list[tuple[int, int]]]
|
||||
|
||||
class CaliforniaEducation(California):
|
||||
def get_variable_days(self, year): ...
|
||||
|
||||
class CaliforniaBerkeley(California):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
include_cesar_chavez_day: ClassVar[bool]
|
||||
include_lincoln_birthday: ClassVar[bool]
|
||||
include_columbus_day: ClassVar[bool]
|
||||
columbus_day_label: ClassVar[str]
|
||||
|
||||
class CaliforniaSanFrancisco(California):
|
||||
include_cesar_chavez_day: ClassVar[bool]
|
||||
include_columbus_day: ClassVar[bool]
|
||||
|
||||
class CaliforniaWestHollywood(California):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
include_cesar_chavez_day: ClassVar[bool]
|
||||
include_thanksgiving_friday: ClassVar[bool]
|
||||
class CaliforniaEducation(California): ...
|
||||
class CaliforniaBerkeley(California): ...
|
||||
class CaliforniaSanFrancisco(California): ...
|
||||
class CaliforniaWestHollywood(California): ...
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class Connecticut(UnitedStates):
|
||||
include_good_friday: ClassVar[bool]
|
||||
include_lincoln_birthday: ClassVar[bool]
|
||||
class Connecticut(UnitedStates): ...
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
from _typeshed import Incomplete
|
||||
import datetime
|
||||
from typing import ClassVar
|
||||
|
||||
from ..core import WesternCalendar
|
||||
|
||||
class UnitedStates(WesternCalendar):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
include_veterans_day: ClassVar[bool]
|
||||
veterans_day_label: ClassVar[str]
|
||||
martin_luther_king_label: ClassVar[str]
|
||||
@@ -19,38 +18,32 @@ class UnitedStates(WesternCalendar):
|
||||
include_jefferson_davis_birthday: ClassVar[bool]
|
||||
include_cesar_chavez_day: ClassVar[bool]
|
||||
include_patriots_day: ClassVar[bool]
|
||||
boxing_day_label: ClassVar[str]
|
||||
include_election_day_every_year: ClassVar[bool]
|
||||
include_election_day_even: ClassVar[bool]
|
||||
election_day_label: ClassVar[str]
|
||||
include_inauguration_day: ClassVar[bool]
|
||||
national_memorial_day_label: ClassVar[str]
|
||||
include_fat_tuesday: ClassVar[bool]
|
||||
fat_tuesday_label: ClassVar[str]
|
||||
include_juneteenth: ClassVar[bool]
|
||||
shift_exceptions: Incomplete
|
||||
def shift(self, holidays, year): ...
|
||||
shift_exceptions: ClassVar[tuple[tuple[int, int], ...] | list[tuple[int, int]]]
|
||||
def shift(self, holidays: list[tuple[datetime.date, str]], year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
@staticmethod
|
||||
def is_presidential_year(year): ...
|
||||
def get_election_date(self, year): ...
|
||||
def get_election_day(self, year): ...
|
||||
def get_thanksgiving_friday(self, year): ...
|
||||
def get_confederate_day(self, year): ...
|
||||
def get_jefferson_davis_birthday(self, year): ...
|
||||
def get_martin_luther_king_date(self, year): ...
|
||||
def get_martin_luther_king_day(self, year): ...
|
||||
def get_presidents_day(self, year): ...
|
||||
def get_cesar_chavez_days(self, year): ...
|
||||
def get_patriots_day(self, year): ...
|
||||
def get_columbus_day(self, year): ...
|
||||
def get_lincoln_birthday(self, year): ...
|
||||
def get_inauguration_date(self, year): ...
|
||||
def get_national_memorial_day(self, year): ...
|
||||
def get_juneteenth_day(self, year): ...
|
||||
def get_variable_days(self, year): ...
|
||||
def get_veterans_day(self, year): ...
|
||||
def get_fixed_holidays(self, year): ...
|
||||
def get_calendar_holidays(self, year): ...
|
||||
def is_presidential_year(year: int) -> bool: ...
|
||||
def get_election_date(self, year: int) -> datetime.date: ...
|
||||
def get_election_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_thanksgiving_friday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_confederate_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_jefferson_davis_birthday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_martin_luther_king_date(self, year: int) -> datetime.date: ...
|
||||
def get_martin_luther_king_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_presidents_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_cesar_chavez_days(self, year: int) -> list[tuple[datetime.date, str]]: ...
|
||||
def get_patriots_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_columbus_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_lincoln_birthday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_inauguration_date(self, year: int) -> datetime.date: ...
|
||||
def get_national_memorial_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_juneteenth_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_veterans_day(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
class FederalReserveSystem(UnitedStates):
|
||||
include_juneteenth: ClassVar[bool]
|
||||
class FederalReserveSystem(UnitedStates): ...
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class Delaware(UnitedStates):
|
||||
include_good_friday: ClassVar[bool]
|
||||
include_thanksgiving_friday: ClassVar[bool]
|
||||
include_federal_presidents_day: ClassVar[bool]
|
||||
include_columbus_day: ClassVar[bool]
|
||||
include_election_day_even: ClassVar[bool]
|
||||
class Delaware(UnitedStates): ...
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class DistrictOfColumbia(UnitedStates):
|
||||
include_inauguration_day: ClassVar[bool]
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
class DistrictOfColumbia(UnitedStates): ...
|
||||
|
||||
@@ -1,45 +1,26 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
import datetime
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class HebrewHolidays:
|
||||
hebrew_calendars: Incomplete
|
||||
@classmethod
|
||||
def get_hebrew_calendar(cls, gregorian_year): ...
|
||||
@classmethod
|
||||
def search_hebrew_calendar(cls, gregorian_year, hebrew_month, hebrew_day): ...
|
||||
@classmethod
|
||||
def get_rosh_hashanah(cls, year): ...
|
||||
@classmethod
|
||||
def get_yom_kippur(cls, year): ...
|
||||
_HebrewDate: TypeAlias = Any # from `pyluach.dates` package
|
||||
|
||||
class Florida(UnitedStates):
|
||||
include_thanksgiving_friday: ClassVar[bool]
|
||||
thanksgiving_friday_label: ClassVar[str]
|
||||
include_columbus_day: ClassVar[bool]
|
||||
include_federal_presidents_day: ClassVar[bool]
|
||||
class HebrewHolidays:
|
||||
hebrew_calendars: dict[int, list[tuple[_HebrewDate | None, datetime.date]]]
|
||||
@classmethod
|
||||
def get_hebrew_calendar(cls, gregorian_year: int) -> list[tuple[_HebrewDate | None, datetime.date]]: ...
|
||||
@classmethod
|
||||
def search_hebrew_calendar(cls, gregorian_year: int, hebrew_month: int, hebrew_day: int) -> datetime.date: ...
|
||||
@classmethod
|
||||
def get_rosh_hashanah(cls, year: int) -> datetime.date: ...
|
||||
@classmethod
|
||||
def get_yom_kippur(cls, year: int) -> datetime.date: ...
|
||||
|
||||
class Florida(UnitedStates): ...
|
||||
|
||||
class FloridaLegal(Florida):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
include_fat_tuesday: ClassVar[bool]
|
||||
include_lincoln_birthday: ClassVar[bool]
|
||||
include_federal_presidents_day: ClassVar[bool]
|
||||
include_good_friday: ClassVar[bool]
|
||||
include_confederation_day: ClassVar[bool]
|
||||
include_jefferson_davis_birthday: ClassVar[bool]
|
||||
include_columbus_day: ClassVar[bool]
|
||||
columbus_day_label: ClassVar[str]
|
||||
include_election_day_every_year: ClassVar[bool]
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def get_confederate_day(self, year): ...
|
||||
def get_jefferson_davis_birthday(self, year): ...
|
||||
|
||||
class FloridaCircuitCourts(HebrewHolidays, Florida):
|
||||
include_federal_presidents_day: ClassVar[bool]
|
||||
include_good_friday: ClassVar[bool]
|
||||
def get_variable_days(self, year): ...
|
||||
|
||||
class FloridaMiamiDade(Florida):
|
||||
include_federal_presidents_day: ClassVar[bool]
|
||||
include_columbus_day: ClassVar[bool]
|
||||
class FloridaCircuitCourts(HebrewHolidays, Florida): ...
|
||||
class FloridaMiamiDade(Florida): ...
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import datetime
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class Georgia(UnitedStates):
|
||||
include_confederation_day: ClassVar[bool]
|
||||
include_federal_presidents_day: ClassVar[bool]
|
||||
label_washington_birthday_december: ClassVar[str]
|
||||
thanksgiving_friday_label: ClassVar[str]
|
||||
def get_washington_birthday_december(self, year): ...
|
||||
def get_confederate_day(self, year): ...
|
||||
def get_robert_lee_birthday(self, year): ...
|
||||
def get_variable_days(self, year): ...
|
||||
def get_washington_birthday_december(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
def get_robert_lee_birthday(self, year: int) -> tuple[datetime.date, str]: ...
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
|
||||
from .core import UnitedStates
|
||||
|
||||
class Guam(UnitedStates):
|
||||
FIXED_HOLIDAYS: Incomplete
|
||||
include_all_souls: ClassVar[bool]
|
||||
include_immaculate_conception: ClassVar[bool]
|
||||
immaculate_conception_label: ClassVar[str]
|
||||
class Guam(UnitedStates): ...
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user