Remove tzlocal from pyright's exclude (#8969)

This commit is contained in:
Shantanu
2022-10-23 05:30:57 -07:00
committed by GitHub
parent dc7fdc6f5d
commit 19f57a6e57
2 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,6 @@
"stubs/stripe",
"stubs/tqdm",
"stubs/tree-sitter",
"stubs/tzlocal/tzlocal/utils.pyi",
"stubs/ttkthemes",
"stubs/urllib3",
"stubs/vobject"

View File

@@ -1,3 +1,4 @@
import datetime
import sys
import pytz
@@ -10,6 +11,6 @@ if sys.version_info >= (3, 9):
else:
class ZoneInfoNotFoundError(pytz.UnknownTimeZoneError): ...
def get_system_offset(): ...
def get_tz_offset(tz): ...
def assert_tz_offset(tz) -> None: ...
def get_system_offset() -> int: ...
def get_tz_offset(tz: datetime.tzinfo) -> int: ...
def assert_tz_offset(tz: datetime.tzinfo) -> None: ...