mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 06:00:24 +08:00
Add missing third party modules (#8321)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: hauntsaninja <> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Alex Waygood
hauntsaninja <>
pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
parent
46937df750
commit
4b34b345f1
@@ -0,0 +1,15 @@
|
||||
import sys
|
||||
|
||||
import pytz
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
import zoneinfo
|
||||
|
||||
class ZoneInfoNotFoundError(pytz.UnknownTimeZoneError, zoneinfo.ZoneInfoNotFoundError): ...
|
||||
|
||||
else:
|
||||
class ZoneInfoNotFoundError(pytz.UnknownTimeZoneError): ...
|
||||
|
||||
def get_system_offset(): ...
|
||||
def get_tz_offset(tz): ...
|
||||
def assert_tz_offset(tz) -> None: ...
|
||||
@@ -0,0 +1,3 @@
|
||||
win_tz: dict[str, str]
|
||||
tz_names: dict[str, str]
|
||||
tz_win: dict[str, str]
|
||||
Reference in New Issue
Block a user