mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-14 12:01:06 +08:00
Add __all__ (#13704)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -36,3 +36,5 @@ Eastern: USTimeZone
|
||||
Central: USTimeZone
|
||||
Mountain: USTimeZone
|
||||
Pacific: USTimeZone
|
||||
|
||||
__all__ = ["FixedOffset", "LocalTimezone", "USTimeZone", "Eastern", "Central", "Mountain", "Pacific", "UTC"]
|
||||
|
||||
@@ -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] = []
|
||||
|
||||
Reference in New Issue
Block a user