Enforce Positional Arguments for _CData.from_param (#12373)

This commit is contained in:
Max Muoto
2024-07-20 14:21:36 -05:00
committed by GitHub
parent 9f9a461bc1
commit fa0c14fa33
2 changed files with 1 additions and 6 deletions

View File

@@ -14,11 +14,6 @@ ctypes._endian.SIZEOF_TIME_T
ctypes._endian.cdll
ctypes._endian.pydll
ctypes._endian.pythonapi
ctypes.c_char_p.from_param
ctypes.c_void_p.from_param
ctypes.c_wchar_p.from_param
ctypes.wintypes.PCHAR.from_param
ctypes.wintypes.PWCHAR.from_param
doctest.TestResults.__doc__
doctest.TestResults.__new__
filecmp.dircmp.__init__

View File

@@ -71,7 +71,7 @@ class _CData(metaclass=_CDataMeta):
@classmethod
def from_address(cls, address: int) -> Self: ...
@classmethod
def from_param(cls, obj: Any) -> Self | _CArgObject: ...
def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
@classmethod
def in_dll(cls, library: CDLL, name: str) -> Self: ...
def __buffer__(self, flags: int, /) -> memoryview: ...