Bump ctypes to 3.14 (#14137)

This commit is contained in:
Semyon Moroz
2025-05-26 01:13:36 +00:00
committed by GitHub
parent adabd34dde
commit 4ea1f958ce
8 changed files with 28 additions and 26 deletions
@@ -3,9 +3,6 @@
# ====================================================================
asyncio.tools
ctypes.c_double_complex._type_
ctypes.c_float_complex._type_
ctypes.c_longdouble_complex._type_
# =======
@@ -3,6 +3,3 @@
# ====================================================================
asyncio.tools
ctypes.c_double_complex._type_
ctypes.c_float_complex._type_
ctypes.c_longdouble_complex._type_
@@ -16,17 +16,6 @@ compression.gzip.GzipFile.readinto1
compression.gzip.GzipFile.readinto1
compression.gzip.compress
compression.zstd
ctypes.memoryview_at
ctypes.py_object.__class_getitem__
ctypes.util.dllist
ctypes.wintypes.HCONV
ctypes.wintypes.HCONVLIST
ctypes.wintypes.HCURSOR
ctypes.wintypes.HDDEDATA
ctypes.wintypes.HDROP
ctypes.wintypes.HFILE
ctypes.wintypes.HRESULT
ctypes.wintypes.HSZ
fractions.Fraction.__pow__
fractions.Fraction.__rpow__
gzip.GzipFile.readinto
@@ -4,9 +4,6 @@
_winapi.COPY_FILE_DIRECTORY
compression.zlib.ZLIBNG_VERSION
ctypes.c_double_complex
ctypes.c_float_complex
ctypes.c_longdouble_complex
encodings.win32_code_page_search_function
nt.readinto
pathlib.Path.group
+2
View File
@@ -75,6 +75,8 @@ class _CData:
_objects: Mapping[Any, int] | None
def __buffer__(self, flags: int, /) -> memoryview: ...
def __ctypes_from_outparam__(self, /) -> Self: ...
if sys.version_info >= (3, 14):
__pointer_type__: type
# this is a union of all the subclasses of _CData, which is useful because of
# the methods that are present on each of those subclasses which are not present
+14 -6
View File
@@ -31,6 +31,9 @@ from typing_extensions import Self, TypeAlias, deprecated
if sys.platform == "win32":
from _ctypes import FormatError as FormatError, get_last_error as get_last_error, set_last_error as set_last_error
if sys.version_info >= (3, 14):
from _ctypes import COMError as COMError
if sys.version_info >= (3, 11):
from ctypes._endian import BigEndianUnion as BigEndianUnion, LittleEndianUnion as LittleEndianUnion
@@ -197,8 +200,13 @@ if sys.platform == "win32":
def wstring_at(ptr: _CVoidConstPLike, size: int = -1) -> str: ...
if sys.version_info >= (3, 14):
def memoryview_at(ptr: _CVoidConstPLike, size: int, readonly: bool = False) -> memoryview: ...
class py_object(_CanCastTo, _SimpleCData[_T]):
_type_: ClassVar[Literal["O"]]
if sys.version_info >= (3, 14):
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class c_bool(_SimpleCData[bool]):
_type_: ClassVar[Literal["?"]]
@@ -270,15 +278,15 @@ class c_double(_SimpleCData[float]):
class c_longdouble(_SimpleCData[float]): # can be an alias for c_double
_type_: ClassVar[Literal["d", "g"]]
if sys.version_info >= (3, 14):
class c_float_complex(_SimpleCData[complex]):
_type_: ClassVar[Literal["E"]]
if sys.version_info >= (3, 14) and sys.platform != "win32":
class c_double_complex(_SimpleCData[complex]):
_type_: ClassVar[Literal["C"]]
_type_: ClassVar[Literal["D"]]
class c_float_complex(_SimpleCData[complex]):
_type_: ClassVar[Literal["F"]]
class c_longdouble_complex(_SimpleCData[complex]):
_type_: ClassVar[Literal["F"]]
_type_: ClassVar[Literal["G"]]
class c_char(_SimpleCData[bytes]):
_type_: ClassVar[Literal["c"]]
+3
View File
@@ -5,4 +5,7 @@ def find_library(name: str) -> str | None: ...
if sys.platform == "win32":
def find_msvcrt() -> str | None: ...
if sys.version_info >= (3, 14):
def dllist() -> list[str]: ...
def test() -> None: ...
+9
View File
@@ -83,6 +83,15 @@ HACCEL = HANDLE
HBITMAP = HANDLE
HBRUSH = HANDLE
HCOLORSPACE = HANDLE
if sys.version_info >= (3, 14):
HCONV = HANDLE
HCONVLIST = HANDLE
HCURSOR = HANDLE
HDDEDATA = HANDLE
HDROP = HANDLE
HFILE = INT
HRESULT = LONG
HSZ = HANDLE
HDC = HANDLE
HDESK = HANDLE
HDWP = HANDLE