Skip to content

Commit fa0c14f

Browse files
authored
Enforce Positional Arguments for _CData.from_param (#12373)
1 parent 9f9a461 commit fa0c14f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

stdlib/@tests/stubtest_allowlists/py313.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ ctypes._endian.SIZEOF_TIME_T
1414
ctypes._endian.cdll
1515
ctypes._endian.pydll
1616
ctypes._endian.pythonapi
17-
ctypes.c_char_p.from_param
18-
ctypes.c_void_p.from_param
19-
ctypes.c_wchar_p.from_param
20-
ctypes.wintypes.PCHAR.from_param
21-
ctypes.wintypes.PWCHAR.from_param
2217
doctest.TestResults.__doc__
2318
doctest.TestResults.__new__
2419
filecmp.dircmp.__init__

stdlib/_ctypes.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class _CData(metaclass=_CDataMeta):
7171
@classmethod
7272
def from_address(cls, address: int) -> Self: ...
7373
@classmethod
74-
def from_param(cls, obj: Any) -> Self | _CArgObject: ...
74+
def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
7575
@classmethod
7676
def in_dll(cls, library: CDLL, name: str) -> Self: ...
7777
def __buffer__(self, flags: int, /) -> memoryview: ...

0 commit comments

Comments
 (0)