From f24e08a92811c3fad2bf2f4211bd29ea84005746 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 2 May 2026 17:50:57 +0200 Subject: [PATCH] Fix Sphinx references --- Doc/whatsnew/3.15.rst | 8 ++++---- .../2026-05-02-15-58-08.gh-issue-148675.b3ZNlj.rst | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index c65125be8b7..8ce8ef55d10 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -1722,10 +1722,10 @@ ctypes which has been deprecated since Python 3.13. (Contributed by Bénédikt Tran in :gh:`133866`.) -* Change the :py:attr:`~_SimpleCData._type_` of :class:`c_float_complex`, - :class:`c_double_complex` and :class:`c_longdouble_complex` - from ``F``, ``D`` and ``G`` to ``Zf``, ``Zd`` and ``Zg`` - for compatibility with numpy. +* Change the :py:attr:`~_SimpleCData._type_` of + :class:`~ctypes.c_float_complex`, :class:`~ctypes.c_double_complex` and + :class:`~ctypes.c_longdouble_complex` from ``F``, ``D`` and ``G`` to ``Zf``, + ``Zd`` and ``Zg`` for compatibility with numpy. (Contributed by Victor Stinner in :gh:`148675`.) diff --git a/Misc/NEWS.d/next/Library/2026-05-02-15-58-08.gh-issue-148675.b3ZNlj.rst b/Misc/NEWS.d/next/Library/2026-05-02-15-58-08.gh-issue-148675.b3ZNlj.rst index b8bc12002df..f17646c11ed 100644 --- a/Misc/NEWS.d/next/Library/2026-05-02-15-58-08.gh-issue-148675.b3ZNlj.rst +++ b/Misc/NEWS.d/next/Library/2026-05-02-15-58-08.gh-issue-148675.b3ZNlj.rst @@ -1,4 +1,4 @@ :mod:`ctypes`: Change the :py:attr:`~_SimpleCData._type_` of -:class:`c_float_complex`, :class:`c_double_complex` and -:class:`c_longdouble_complex` from ``F``, ``D`` and ``G`` to ``Zf``, ``Zd`` -and ``Zg`` for compatibility with numpy. Patch by Victor Stinner. +:class:`~ctypes.c_float_complex`, :class:`~ctypes.c_double_complex` and +:class:`~ctypes.c_longdouble_complex` from ``F``, ``D`` and ``G`` to ``Zf``, +``Zd`` and ``Zg`` for compatibility with numpy. Patch by Victor Stinner.