Add __all__ (#13704)

This commit is contained in:
Semyon Moroz
2025-03-25 14:09:32 +01:00
committed by GitHub
parent 4a750cef35
commit 9234985c3d
54 changed files with 311 additions and 63 deletions
-5
View File
@@ -1,8 +1,3 @@
# TODO: missing from stub
pytz.__all__
pytz.reference.__all__
pytz.tzinfo.__all__
# "Abstract" methods, see the .pyi file for more details.
pytz.BaseTzInfo.localize
pytz.BaseTzInfo.normalize
+17
View File
@@ -44,3 +44,20 @@ country_names: Mapping[str, str]
ZERO: datetime.timedelta
HOUR: datetime.timedelta
VERSION: str
__all__ = [
"timezone",
"utc",
"country_timezones",
"country_names",
"AmbiguousTimeError",
"InvalidTimeError",
"NonExistentTimeError",
"UnknownTimeZoneError",
"all_timezones",
"all_timezones_set",
"common_timezones",
"common_timezones_set",
"BaseTzInfo",
"FixedOffset",
]
+2
View File
@@ -36,3 +36,5 @@ Eastern: USTimeZone
Central: USTimeZone
Mountain: USTimeZone
Pacific: USTimeZone
__all__ = ["FixedOffset", "LocalTimezone", "USTimeZone", "Eastern", "Central", "Mountain", "Pacific", "UTC"]
+2
View File
@@ -39,3 +39,5 @@ class DstTzInfo(BaseTzInfo):
@overload
def utcoffset(self, dt: datetime.datetime, is_dst: bool | None = None) -> datetime.timedelta: ...
def dst(self, dt: datetime.datetime | None, is_dst: bool | None = None) -> datetime.timedelta | None: ...
__all__: list[str] = []