mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +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:
15
stubs/tzlocal/tzlocal/utils.pyi
Normal file
15
stubs/tzlocal/tzlocal/utils.pyi
Normal file
@@ -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: ...
|
||||
3
stubs/tzlocal/tzlocal/windows_tz.pyi
Normal file
3
stubs/tzlocal/tzlocal/windows_tz.pyi
Normal file
@@ -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