From 19f57a6e57ded329d23c11fda74907eaf0a3bdd9 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 23 Oct 2022 05:30:57 -0700 Subject: [PATCH] Remove tzlocal from pyright's exclude (#8969) --- pyrightconfig.stricter.json | 1 - stubs/tzlocal/tzlocal/utils.pyi | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index ec0b2380e..7d6ba1ff8 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -78,7 +78,6 @@ "stubs/stripe", "stubs/tqdm", "stubs/tree-sitter", - "stubs/tzlocal/tzlocal/utils.pyi", "stubs/ttkthemes", "stubs/urllib3", "stubs/vobject" diff --git a/stubs/tzlocal/tzlocal/utils.pyi b/stubs/tzlocal/tzlocal/utils.pyi index 37e42d31c..aedc34ac5 100644 --- a/stubs/tzlocal/tzlocal/utils.pyi +++ b/stubs/tzlocal/tzlocal/utils.pyi @@ -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: ...