From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 2 Jun 2026 08:08:01 +0000 (+0200) Subject: [3.15] gh-89554: Document weakref type objects as classes (GH-150678) (GH-150760) X-Git-Tag: v3.15.0b2~14 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=506b41d458e7fc08d4adc1a8eca5743377f7562b;p=thirdparty%2FPython%2Fcpython.git [3.15] gh-89554: Document weakref type objects as classes (GH-150678) (GH-150760) Use the "class" directive instead of "data" for ReferenceType, ProxyType and CallableProxyType. (cherry picked from commit 10c421970beca89df92a918f2247fb8850d3b6cc) Co-authored-by: Bernát Gábor --- diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index 87dd860da4dc..318da931fc31 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -324,17 +324,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.