Skip to content

Commit 10e2d64

Browse files
committed
Update _ctypes to 3.14
1 parent 5c85bb7 commit 10e2d64

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ compression.gzip.GzipFile.readinto1
5151
compression.gzip.GzipFile.readinto1
5252
compression.gzip.compress
5353
compression.zstd
54-
ctypes.POINTER
55-
ctypes.byref
5654
ctypes.memoryview_at
57-
ctypes.pointer
5855
ctypes.py_object.__class_getitem__
5956
ctypes.util.dllist
6057
ctypes.wintypes.HCONV

stdlib/ctypes/__init__.pyi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import sys
22
from _ctypes import (
3-
POINTER as POINTER,
43
RTLD_GLOBAL as RTLD_GLOBAL,
54
RTLD_LOCAL as RTLD_LOCAL,
65
Array as Array,
@@ -19,7 +18,6 @@ from _ctypes import (
1918
alignment as alignment,
2019
byref as byref,
2120
get_errno as get_errno,
22-
pointer as pointer,
2321
resize as resize,
2422
set_errno as set_errno,
2523
sizeof as sizeof,
@@ -36,6 +34,12 @@ if sys.platform == "win32":
3634
if sys.version_info >= (3, 11):
3735
from ctypes._endian import BigEndianUnion as BigEndianUnion, LittleEndianUnion as LittleEndianUnion
3836

37+
if sys.version_info < (3, 14):
38+
from _ctypes import (
39+
POINTER as POINTER,
40+
pointer as pointer,
41+
)
42+
3943
_T = TypeVar("_T", default=Any)
4044
_DLLT = TypeVar("_DLLT", bound=CDLL)
4145
_CT = TypeVar("_CT", bound=_CData)

0 commit comments

Comments
 (0)