From 14fb9df49c171fafdcda3c41f9b6f2df33a3a9f5 Mon Sep 17 00:00:00 2001 From: Dominik Gabi Date: Fri, 20 Jul 2018 17:21:32 -0700 Subject: [PATCH] Fix annotation shadowed by forward reference of preoprty in `datetime` constructor. (#2337) --- stdlib/2and3/datetime.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/2and3/datetime.pyi b/stdlib/2and3/datetime.pyi index 25f128f97..1097d3d78 100644 --- a/stdlib/2and3/datetime.pyi +++ b/stdlib/2and3/datetime.pyi @@ -81,7 +81,7 @@ class time: resolution: ClassVar[timedelta] def __init__(self, hour: int = ..., minute: int = ..., second: int = ..., microsecond: int = ..., - tzinfo: Optional[tzinfo] = ...) -> None: ... + tzinfo: Optional[_tzinfo] = ...) -> None: ... @property def hour(self) -> int: ... @@ -179,11 +179,11 @@ class datetime: if sys.version_info >= (3, 6): def __init__(self, year: int, month: int, day: int, hour: int = ..., minute: int = ..., second: int = ..., microsecond: int = ..., - tzinfo: Optional[tzinfo] = ..., *, fold: int = ...) -> None: ... + tzinfo: Optional[_tzinfo] = ..., *, fold: int = ...) -> None: ... else: def __init__(self, year: int, month: int, day: int, hour: int = ..., minute: int = ..., second: int = ..., microsecond: int = ..., - tzinfo: Optional[tzinfo] = ...) -> None: ... + tzinfo: Optional[_tzinfo] = ...) -> None: ... @property def year(self) -> int: ...