From 8b9997d82c7ac5bee99cc603895f424df2de0e15 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 2 Jun 2026 10:06:04 +0200 Subject: [PATCH] [3.13] gh-89554: Document weakref type objects as classes (GH-150678) (GH-150758) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Use the "class" directive instead of "data" for ReferenceType, ProxyType and CallableProxyType. (cherry picked from commit 10c421970beca89df92a918f2247fb8850d3b6cc) Co-authored-by: Bernát Gábor --- Doc/library/weakref.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index 2a25ed045c68..7629d21da072 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -329,17 +329,17 @@ same issues as the :meth:`WeakKeyDictionary.keyrefs` method. .. versionadded:: 3.4 -.. data:: ReferenceType +.. class:: ReferenceType The type object for weak references objects. -.. data:: ProxyType +.. class:: ProxyType The type object for proxies of objects which are not callable. -.. data:: CallableProxyType +.. class:: CallableProxyType The type object for proxies of callable objects. -- 2.47.3