From 7cc094da501eb13b411b6eaa5ba6734795a3967c Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 13 May 2025 14:16:35 +0200 Subject: [PATCH] [ctypes] Fix argument name (#14048) --- stdlib/ctypes/__init__.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/ctypes/__init__.pyi b/stdlib/ctypes/__init__.pyi index 200c6d6f1..68b75b86d 100644 --- a/stdlib/ctypes/__init__.pyi +++ b/stdlib/ctypes/__init__.pyi @@ -41,11 +41,11 @@ _DLLT = TypeVar("_DLLT", bound=CDLL) if sys.version_info >= (3, 14): @overload @deprecated("ctypes.POINTER with string") - def POINTER(obj: str) -> type[Any]: ... + def POINTER(cls: str) -> type[Any]: ... @overload - def POINTER(obj: None) -> type[c_void_p]: ... + def POINTER(cls: None) -> type[c_void_p]: ... @overload - def POINTER(obj: type[_CT]) -> type[_Pointer[_CT]]: ... + def POINTER(cls: type[_CT]) -> type[_Pointer[_CT]]: ... def pointer(obj: _CT) -> _Pointer[_CT]: ... else: