From fed419b8f10f3ce1f6d529f2c29b016478b0c2a5 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Wed, 24 Aug 2022 00:52:16 +0300 Subject: [PATCH] Add `CTYPES_MAX_ARGCOUNT` to `_ctypes` (#8601) --- stdlib/_ctypes.pyi | 3 +++ tests/stubtest_allowlists/py311.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/_ctypes.pyi b/stdlib/_ctypes.pyi index f05c8a0e4..3ded92a91 100644 --- a/stdlib/_ctypes.pyi +++ b/stdlib/_ctypes.pyi @@ -2,6 +2,9 @@ import sys from ctypes import _CArgObject, _PointerLike from typing_extensions import TypeAlias +if sys.version_info >= (3, 11): + CTYPES_MAX_ARGCOUNT: int + if sys.platform == "win32": # Description, Source, HelpFile, HelpContext, scode _COMError_Details: TypeAlias = tuple[str | None, str | None, str | None, int | None, int | None] diff --git a/tests/stubtest_allowlists/py311.txt b/tests/stubtest_allowlists/py311.txt index 551f14191..729dbb27e 100644 --- a/tests/stubtest_allowlists/py311.txt +++ b/tests/stubtest_allowlists/py311.txt @@ -12,7 +12,6 @@ _collections_abc.MappingView.__class_getitem__ _collections_abc.ValuesView.__reversed__ _csv.Reader _csv.Writer -_ctypes.CTYPES_MAX_ARGCOUNT _operator.attrgetter.__vectorcalloffset__ _operator.itemgetter.__vectorcalloffset__ argparse._MutuallyExclusiveGroup.add_mutually_exclusive_group