Skip to content

Commit caedbda

Browse files
committed
add the _flags_ attribute to _ctypes.CFuncPtr
and remove `_ctypes.CFuncPtr._flags_` from allowlists
1 parent 6399ecd commit caedbda

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

stdlib/_ctypes.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class CFuncPtr(_PointerLike, _CData):
100100
restype: type[_CData] | Callable[[int], Any] | None
101101
argtypes: Sequence[type[_CData]]
102102
errcheck: _ECT
103+
_flags_: int
103104
@overload
104105
def __init__(self, address: int) -> None: ...
105106
@overload

tests/stubtest_allowlists/py3_common.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ turtle.ScrolledCanvas.onResize
334334
wave.Wave_read.initfp
335335
wave.Wave_write.initfp
336336

337-
_ctypes.CFuncPtr._flags_
338337
_ctypes.PyObj_FromPtr
339338
_ctypes.Py_DECREF
340339
_ctypes.Py_INCREF

0 commit comments

Comments
 (0)