stubtest: fix on windows (#4455)

Co-authored-by: Akuli
This commit is contained in:
Shantanu
2020-08-17 14:55:58 -07:00
committed by GitHub
parent e9ecea0033
commit f23ce60668
3 changed files with 7 additions and 5 deletions

View File

@@ -69,10 +69,11 @@ if sys.version_info >= (3, 3):
],
_arg: Any = ...,
) -> struct_time: ...
@property
def tm_zone(self) -> str: ...
@property
def tm_gmtoff(self) -> int: ...
if sys.version_info >= (3, 6) or sys.platform != "win32":
@property
def tm_zone(self) -> str: ...
@property
def tm_gmtoff(self) -> int: ...
else:
class struct_time(_struct_time):