mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 10:52:31 +08:00
Add __all__ part 2 (#13719)
--------- Co-authored-by: Avasam <samuel.06@hotmail.com>
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
# TODO: missing from stub
|
||||
workalendar.africa.__all__
|
||||
workalendar.america.__all__
|
||||
workalendar.asia.__all__
|
||||
workalendar.astronomy.__all__
|
||||
workalendar.europe.__all__
|
||||
# VictoriaDayTuesdayAfterFirstMondayMay is not defined but used in __all__ runtime:
|
||||
workalendar.europe.scotland.mixins.__all__
|
||||
workalendar.oceania.__all__
|
||||
workalendar.usa.__all__
|
||||
workalendar.europe.scotland.mixins.VictoriaDayTuesdayAfterFirstMondayMay
|
||||
|
||||
workalendar.core.CoreCalendar.name
|
||||
workalendar.europe.scotland.mixins.VictoriaDayTuesdayAfterFirstMondayMay
|
||||
workalendar.skyfield_astronomy
|
||||
workalendar.tests
|
||||
workalendar.core.classproperty
|
||||
|
||||
@@ -9,3 +9,17 @@ from .nigeria import Nigeria as Nigeria
|
||||
from .sao_tome import SaoTomeAndPrincipe as SaoTomeAndPrincipe
|
||||
from .south_africa import SouthAfrica as SouthAfrica
|
||||
from .tunisia import Tunisia as Tunisia
|
||||
|
||||
__all__ = (
|
||||
"Algeria",
|
||||
"Benin",
|
||||
"IvoryCoast",
|
||||
"Kenya",
|
||||
"Madagascar",
|
||||
"SaoTomeAndPrincipe",
|
||||
"SouthAfrica",
|
||||
"Angola",
|
||||
"Mozambique",
|
||||
"Nigeria",
|
||||
"Tunisia",
|
||||
)
|
||||
|
||||
@@ -84,3 +84,91 @@ from .el_salvador import ElSalvador as ElSalvador
|
||||
from .mexico import Mexico as Mexico
|
||||
from .panama import Panama as Panama
|
||||
from .paraguay import Paraguay as Paraguay
|
||||
|
||||
__all__ = (
|
||||
# Brazil & its states.
|
||||
"Brazil",
|
||||
"BrazilAcre",
|
||||
"BrazilAlagoas",
|
||||
"BrazilAmapa",
|
||||
"BrazilAmazonas",
|
||||
"BrazilBahia",
|
||||
"BrazilCeara",
|
||||
"BrazilDistritoFederal",
|
||||
"BrazilEspiritoSanto",
|
||||
"BrazilGoias",
|
||||
"BrazilMaranhao",
|
||||
"BrazilMinasGerais",
|
||||
"BrazilMatoGrosso",
|
||||
"BrazilMatoGrossoDoSul",
|
||||
"BrazilPara",
|
||||
"BrazilParaiba",
|
||||
"BrazilPernambuco",
|
||||
"BrazilPiaui",
|
||||
"BrazilParana",
|
||||
"BrazilRioDeJaneiro",
|
||||
"BrazilRioGrandeDoNorte",
|
||||
"BrazilRioGrandeDoSul",
|
||||
"BrazilRondonia",
|
||||
"BrazilRoraima",
|
||||
"BrazilSantaCatarina",
|
||||
"BrazilSaoPauloState",
|
||||
"BrazilSaoPauloCity",
|
||||
"BrazilSergipe",
|
||||
"BrazilTocantins",
|
||||
"BrazilVitoriaCity",
|
||||
"BrazilVilaVelhaCity",
|
||||
"BrazilCariacicaCity",
|
||||
"BrazilGuarapariCity",
|
||||
"BrazilSerraCity",
|
||||
"BrazilBankCalendar",
|
||||
"BrazilRioBrancoCity",
|
||||
"BrazilMaceioCity",
|
||||
"BrazilManausCity",
|
||||
"BrazilMacapaCity",
|
||||
"BrazilSalvadorCity",
|
||||
"BrazilFortalezaCity",
|
||||
"BrazilGoianiaCity",
|
||||
"BrazilBeloHorizonteCity",
|
||||
"BrazilCampoGrandeCity",
|
||||
"BrazilCuiabaCity",
|
||||
"BrazilBelemCity",
|
||||
"BrazilJoaoPessoaCity",
|
||||
"BrazilRecifeCity",
|
||||
"BrazilTeresinaCity",
|
||||
"BrazilCuritibaCity",
|
||||
"BrazilNatalCity",
|
||||
"BrazilPortoVelhoCity",
|
||||
"BrazilBoaVistaCity",
|
||||
"BrazilPortoAlegreCity",
|
||||
"BrazilChapecoCity",
|
||||
"BrazilFlorianopolisCity",
|
||||
"BrazilJoinvilleCity",
|
||||
"BrazilAracajuCity",
|
||||
"BrazilSorocabaCity",
|
||||
"BrazilPalmasCity",
|
||||
# Canada
|
||||
"Canada",
|
||||
"Ontario",
|
||||
"Quebec",
|
||||
"BritishColumbia",
|
||||
"Alberta",
|
||||
"Saskatchewan",
|
||||
"Manitoba",
|
||||
"NewBrunswick",
|
||||
"NovaScotia",
|
||||
"PrinceEdwardIsland",
|
||||
"Newfoundland",
|
||||
"Yukon",
|
||||
"NorthwestTerritories",
|
||||
"Nunavut",
|
||||
# Other american countries
|
||||
"Barbados",
|
||||
"Chile",
|
||||
"Colombia",
|
||||
"Mexico",
|
||||
"Panama",
|
||||
"Paraguay",
|
||||
"Argentina",
|
||||
"ElSalvador",
|
||||
)
|
||||
|
||||
@@ -9,3 +9,19 @@ from .qatar import Qatar as Qatar
|
||||
from .singapore import Singapore as Singapore
|
||||
from .south_korea import SouthKorea as SouthKorea
|
||||
from .taiwan import Taiwan as Taiwan
|
||||
|
||||
__all__ = (
|
||||
"China",
|
||||
"HongKong",
|
||||
"HongKongBank",
|
||||
"Japan",
|
||||
"JapanBank",
|
||||
"Malaysia",
|
||||
"Qatar",
|
||||
"Singapore",
|
||||
"SouthKorea",
|
||||
"Taiwan",
|
||||
"Israel",
|
||||
"Philippines",
|
||||
"Kazakhstan",
|
||||
)
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
from .precomputed_astronomy import calculate_equinoxes as calculate_equinoxes, solar_term as solar_term
|
||||
|
||||
__all__ = ["calculate_equinoxes", "solar_term"]
|
||||
|
||||
@@ -136,3 +136,144 @@ from .switzerland import (
|
||||
from .turkey import Turkey as Turkey
|
||||
from .ukraine import Ukraine as Ukraine
|
||||
from .united_kingdom import UnitedKingdom as UnitedKingdom, UnitedKingdomNorthernIreland as UnitedKingdomNorthernIreland
|
||||
|
||||
__all__ = (
|
||||
"Austria",
|
||||
"Belarus",
|
||||
"Belgium",
|
||||
"Bulgaria",
|
||||
"CaymanIslands",
|
||||
"Croatia",
|
||||
"Cyprus",
|
||||
"CzechRepublic",
|
||||
"Denmark",
|
||||
"Estonia",
|
||||
"EuropeanCentralBank",
|
||||
"Finland",
|
||||
"France",
|
||||
"FranceAlsaceMoselle",
|
||||
"Georgia",
|
||||
"Greece",
|
||||
"Guernsey",
|
||||
"Hungary",
|
||||
"Iceland",
|
||||
"Ireland",
|
||||
"Italy",
|
||||
"Latvia",
|
||||
"Lithuania",
|
||||
"Luxembourg",
|
||||
"Malta",
|
||||
"Monaco",
|
||||
"Netherlands",
|
||||
"NetherlandsWithSchoolHolidays",
|
||||
"Norway",
|
||||
"Poland",
|
||||
"Portugal",
|
||||
"Romania",
|
||||
"Russia",
|
||||
"Serbia",
|
||||
"Slovakia",
|
||||
"Slovenia",
|
||||
"Sweden",
|
||||
"Switzerland",
|
||||
"Ukraine",
|
||||
"UnitedKingdom",
|
||||
"UnitedKingdomNorthernIreland",
|
||||
"Turkey",
|
||||
# Germany
|
||||
"Germany",
|
||||
"BadenWurttemberg",
|
||||
"Bavaria",
|
||||
"Berlin",
|
||||
"Brandenburg",
|
||||
"Bremen",
|
||||
"Hamburg",
|
||||
"Hesse",
|
||||
"MecklenburgVorpommern",
|
||||
"LowerSaxony",
|
||||
"NorthRhineWestphalia",
|
||||
"RhinelandPalatinate",
|
||||
"Saarland",
|
||||
"Saxony",
|
||||
"SaxonyAnhalt",
|
||||
"SchleswigHolstein",
|
||||
"Thuringia",
|
||||
# Scotland
|
||||
"Scotland",
|
||||
"Aberdeen",
|
||||
"Angus",
|
||||
"Arbroath",
|
||||
"Ayr",
|
||||
"CarnoustieMonifieth",
|
||||
"Clydebank",
|
||||
"DumfriesGalloway",
|
||||
"Dundee",
|
||||
"EastDunbartonshire",
|
||||
"Edinburgh",
|
||||
"Elgin",
|
||||
"Falkirk",
|
||||
"Fife",
|
||||
"Galashiels",
|
||||
"Glasgow",
|
||||
"Hawick",
|
||||
"Inverclyde",
|
||||
"Inverness",
|
||||
"Kilmarnock",
|
||||
"Lanark",
|
||||
"Linlithgow",
|
||||
"Lochaber",
|
||||
"NorthLanarkshire",
|
||||
"Paisley",
|
||||
"Perth",
|
||||
"ScottishBorders",
|
||||
"SouthLanarkshire",
|
||||
"Stirling",
|
||||
"WestDunbartonshire",
|
||||
# Spain
|
||||
"Spain",
|
||||
"Andalusia",
|
||||
"Aragon",
|
||||
"Catalonia",
|
||||
"CastileAndLeon",
|
||||
"CastillaLaMancha",
|
||||
"CanaryIslands",
|
||||
"Extremadura",
|
||||
"Galicia",
|
||||
"BalearicIslands",
|
||||
"LaRioja",
|
||||
"CommunityofMadrid",
|
||||
"Murcia",
|
||||
"Navarre",
|
||||
"Asturias",
|
||||
"BasqueCountry",
|
||||
"Cantabria",
|
||||
"ValencianCommunity",
|
||||
# Switzerland
|
||||
"Switzerland",
|
||||
"Aargau",
|
||||
"AppenzellInnerrhoden",
|
||||
"AppenzellAusserrhoden",
|
||||
"Bern",
|
||||
"BaselLandschaft",
|
||||
"BaselStadt",
|
||||
"Fribourg",
|
||||
"Geneva",
|
||||
"Glarus",
|
||||
"Graubunden",
|
||||
"Jura",
|
||||
"Luzern",
|
||||
"Neuchatel",
|
||||
"Nidwalden",
|
||||
"Obwalden",
|
||||
"StGallen",
|
||||
"Schaffhausen",
|
||||
"Solothurn",
|
||||
"Schwyz",
|
||||
"Thurgau",
|
||||
"Ticino",
|
||||
"Uri",
|
||||
"Vaud",
|
||||
"Valais",
|
||||
"Zug",
|
||||
"Zurich",
|
||||
)
|
||||
|
||||
@@ -37,3 +37,27 @@ class AyrGoldCup:
|
||||
|
||||
# Names in __all__ with no definition:
|
||||
# VictoriaDayTuesdayAfterFirstMondayMay
|
||||
|
||||
__all__ = [
|
||||
"AyrGoldCup",
|
||||
"SpringHolidayFirstMondayApril",
|
||||
"SpringHolidaySecondMondayApril",
|
||||
"SpringHolidayTuesdayAfterFirstMondayMay",
|
||||
"SpringHolidayLastMondayMay",
|
||||
"SpringHolidayFirstMondayJune",
|
||||
"VictoriaDayFourthMondayMay",
|
||||
"VictoriaDayLastMondayMay",
|
||||
"VictoriaDayTuesdayAfterFirstMondayMay", # noqa: F822 # pyright: ignore[reportUnsupportedDunderAll] see https://github.com/workalendar/workalendar/pull/778
|
||||
"VictoriaDayFirstMondayJune",
|
||||
"FairHolidayLastMondayJune",
|
||||
"FairHolidayFirstMondayJuly",
|
||||
"FairHolidaySecondMondayJuly",
|
||||
"FairHolidayThirdMondayJuly",
|
||||
"FairHolidayLastMondayJuly",
|
||||
"FairHolidayFourthFridayJuly",
|
||||
"FairHolidayFirstMondayAugust",
|
||||
"AutumnHolidayLastMondaySeptember",
|
||||
"AutumnHolidayFirstMondayOctober",
|
||||
"AutumnHolidaySecondMondayOctober",
|
||||
"AutumnHolidayThirdMondayOctober",
|
||||
]
|
||||
|
||||
@@ -12,3 +12,20 @@ from .australia import (
|
||||
)
|
||||
from .marshall_islands import MarshallIslands as MarshallIslands
|
||||
from .new_zealand import NewZealand as NewZealand
|
||||
|
||||
__all__ = (
|
||||
# Australia and al.
|
||||
"Australia",
|
||||
"AustralianCapitalTerritory",
|
||||
"NewSouthWales",
|
||||
"NorthernTerritory",
|
||||
"Queensland",
|
||||
"SouthAustralia",
|
||||
"Tasmania",
|
||||
"Hobart",
|
||||
"Victoria",
|
||||
"WesternAustralia",
|
||||
# Other oceanian countries
|
||||
"MarshallIslands",
|
||||
"NewZealand",
|
||||
)
|
||||
|
||||
@@ -68,3 +68,75 @@ from .washington import Washington as Washington
|
||||
from .west_virginia import WestVirginia as WestVirginia
|
||||
from .wisconsin import Wisconsin as Wisconsin
|
||||
from .wyoming import Wyoming as Wyoming
|
||||
|
||||
__all__ = [
|
||||
"UnitedStates", # Generic federal calendar
|
||||
"Alabama",
|
||||
"AlabamaBaldwinCounty",
|
||||
"AlabamaMobileCounty",
|
||||
"AlabamaPerryCounty",
|
||||
"Alaska",
|
||||
"Arizona",
|
||||
"Arkansas",
|
||||
"California",
|
||||
"CaliforniaEducation",
|
||||
"CaliforniaBerkeley",
|
||||
"CaliforniaSanFrancisco",
|
||||
"CaliforniaWestHollywood",
|
||||
"Colorado",
|
||||
"Connecticut",
|
||||
"Delaware",
|
||||
"DistrictOfColumbia",
|
||||
"Florida",
|
||||
"FloridaLegal",
|
||||
"FloridaCircuitCourts",
|
||||
"FloridaMiamiDade",
|
||||
"Georgia",
|
||||
"Hawaii",
|
||||
"Idaho",
|
||||
"Illinois",
|
||||
"ChicagoIllinois",
|
||||
"Indiana",
|
||||
"Iowa",
|
||||
"Kansas",
|
||||
"Kentucky",
|
||||
"Louisiana",
|
||||
"Maine",
|
||||
"Maryland",
|
||||
"Massachusetts",
|
||||
"SuffolkCountyMassachusetts",
|
||||
"Michigan",
|
||||
"Minnesota",
|
||||
"Mississippi",
|
||||
"Missouri",
|
||||
"Montana",
|
||||
"Nebraska",
|
||||
"Nevada",
|
||||
"NewHampshire",
|
||||
"NewJersey",
|
||||
"NewMexico",
|
||||
"NewYork",
|
||||
"NorthCarolina",
|
||||
"NorthDakota",
|
||||
"Ohio",
|
||||
"Oklahoma",
|
||||
"Oregon",
|
||||
"Pennsylvania",
|
||||
"RhodeIsland",
|
||||
"SouthCarolina",
|
||||
"SouthDakota",
|
||||
"Tennessee",
|
||||
"TexasBase",
|
||||
"Texas",
|
||||
"Utah",
|
||||
"Vermont",
|
||||
"Virginia",
|
||||
"Washington",
|
||||
"WestVirginia",
|
||||
"Wisconsin",
|
||||
"Wyoming",
|
||||
# Non-State territories
|
||||
"AmericanSamoa",
|
||||
"Guam",
|
||||
"FederalReserveSystem",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user