File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
@tests/stubtest_allowlists Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,7 @@ compression.gzip.GzipFile.readinto1
51
51
compression.gzip.GzipFile.readinto1
52
52
compression.gzip.compress
53
53
compression.zstd
54
- ctypes.POINTER
55
- ctypes.byref
56
54
ctypes.memoryview_at
57
- ctypes.pointer
58
55
ctypes.py_object.__class_getitem__
59
56
ctypes.util.dllist
60
57
ctypes.wintypes.HCONV
Original file line number Diff line number Diff line change 1
1
import sys
2
2
from _ctypes import (
3
- POINTER as POINTER ,
4
3
RTLD_GLOBAL as RTLD_GLOBAL ,
5
4
RTLD_LOCAL as RTLD_LOCAL ,
6
5
Array as Array ,
@@ -19,7 +18,6 @@ from _ctypes import (
19
18
alignment as alignment ,
20
19
byref as byref ,
21
20
get_errno as get_errno ,
22
- pointer as pointer ,
23
21
resize as resize ,
24
22
set_errno as set_errno ,
25
23
sizeof as sizeof ,
@@ -36,6 +34,12 @@ if sys.platform == "win32":
36
34
if sys .version_info >= (3 , 11 ):
37
35
from ctypes ._endian import BigEndianUnion as BigEndianUnion , LittleEndianUnion as LittleEndianUnion
38
36
37
+ if sys .version_info < (3 , 14 ):
38
+ from _ctypes import (
39
+ POINTER as POINTER ,
40
+ pointer as pointer ,
41
+ )
42
+
39
43
_T = TypeVar ("_T" , default = Any )
40
44
_DLLT = TypeVar ("_DLLT" , bound = CDLL )
41
45
_CT = TypeVar ("_CT" , bound = _CData )
You can’t perform that action at this time.
0 commit comments