From e5c531811536a85c8838ef0862eeb19256ecaf90 Mon Sep 17 00:00:00 2001
From: Stephen Morton <git@tungol.org>
Date: Tue, 24 Dec 2024 10:16:57 -0800
Subject: [PATCH] rename ctypes._FuncPtr (#13290)

fixes https://github.com/python/typeshed/issues/13289
---
 stdlib/ctypes/__init__.pyi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/stdlib/ctypes/__init__.pyi b/stdlib/ctypes/__init__.pyi
index e0676aad5a83..958f8ff1ab7e 100644
--- a/stdlib/ctypes/__init__.pyi
+++ b/stdlib/ctypes/__init__.pyi
@@ -48,13 +48,13 @@ class ArgumentError(Exception): ...
 # defined within CDLL.__init__
 # Runtime name is ctypes.CDLL.__init__.<locals>._FuncPtr
 @type_check_only
-class _FuncPtr(_CFuncPtr):
+class _CDLLFuncPointer(_CFuncPtr):
     _flags_: ClassVar[int]
     _restype_: ClassVar[type[_CDataType]]
 
-# Not a real class; _FuncPtr with a __name__ set on it.
+# Not a real class; _CDLLFuncPointer with a __name__ set on it.
 @type_check_only
-class _NamedFuncPointer(_FuncPtr):
+class _NamedFuncPointer(_CDLLFuncPointer):
     __name__: str
 
 class CDLL:
@@ -62,7 +62,7 @@ class CDLL:
     _func_restype_: ClassVar[type[_CDataType]]
     _name: str
     _handle: int
-    _FuncPtr: type[_FuncPtr]
+    _FuncPtr: type[_CDLLFuncPointer]
     def __init__(
         self,
         name: str | None,
@@ -108,7 +108,7 @@ class _CFunctionType(_CFuncPtr):
     _flags_: ClassVar[int]
 
 # Alias for either function pointer type
-_FuncPointer: TypeAlias = _FuncPtr | _CFunctionType  # noqa: Y047  # not used here
+_FuncPointer: TypeAlias = _CDLLFuncPointer | _CFunctionType  # noqa: Y047  # not used here
 
 def CFUNCTYPE(
     restype: type[_CData | _CDataType] | None,