From 37a7910f7e5e8d421c7797850193e5b3efa4098f Mon Sep 17 00:00:00 2001 From: junkmd Date: Wed, 31 Aug 2022 20:03:37 +0900 Subject: [PATCH 1/2] update `pytype` version --- requirements-tests.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index 470b6d85f05a..d6559ae4eb78 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -9,7 +9,7 @@ mypy==0.971 packaging==21.3 pycln==2.1.1 # must match .pre-commit-config.yaml pyyaml==6.0 -pytype==2022.8.23; platform_system != "Windows" +pytype==2022.8.30; platform_system != "Windows" termcolor tomli==1.2.2 tomlkit==0.11.4 From 544d7e42778b48409a2657cf1959453d59b20ed9 Mon Sep 17 00:00:00 2001 From: junkmd Date: Wed, 31 Aug 2022 20:06:55 +0900 Subject: [PATCH 2/2] update to `from _ctypes import ...` --- stdlib/ctypes/__init__.pyi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stdlib/ctypes/__init__.pyi b/stdlib/ctypes/__init__.pyi index 19465e084dee..68626d1e8b60 100644 --- a/stdlib/ctypes/__init__.pyi +++ b/stdlib/ctypes/__init__.pyi @@ -5,9 +5,7 @@ from collections.abc import Callable, Iterable, Iterator, Mapping, Sequence from typing import Any, ClassVar, Generic, TypeVar, Union as _UnionT, overload from typing_extensions import TypeAlias -# TODO: import these from _ctypes once it no longer breaks pytype -RTLD_GLOBAL: int -RTLD_LOCAL: int +from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL if sys.version_info >= (3, 9): from types import GenericAlias