diff --git a/.github/workflows/stubtest.yml b/.github/workflows/stubtest.yml index dcb3991b4..179bcfe98 100644 --- a/.github/workflows/stubtest.yml +++ b/.github/workflows/stubtest.yml @@ -24,4 +24,4 @@ jobs: python -m pip install -U pip pip install -U mypy==0.780 - name: Run stubtest - run: ./tests/stubtest_test.py --ignore-unused-whitelist + run: python tests/stubtest_test.py --ignore-unused-whitelist diff --git a/stdlib/2and3/time.pyi b/stdlib/2and3/time.pyi index a31aee3b1..efaf33d15 100644 --- a/stdlib/2and3/time.pyi +++ b/stdlib/2and3/time.pyi @@ -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): diff --git a/tests/stubtest_whitelists/win32.txt b/tests/stubtest_whitelists/win32.txt index cc0e88fb2..811ba83bd 100644 --- a/tests/stubtest_whitelists/win32.txt +++ b/tests/stubtest_whitelists/win32.txt @@ -17,6 +17,7 @@ _posixsubprocess asyncio.unix_events crypt dbm.gnu +dbm.ndbm fcntl grp nis