]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-89554: Document weakref type objects as classes (GH-150678) (GH-150759)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Jun 2026 08:07:15 +0000 (10:07 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 08:07:15 +0000 (08:07 +0000)
Use the "class" directive instead of "data" for ReferenceType,
ProxyType and CallableProxyType.
(cherry picked from commit 10c421970beca89df92a918f2247fb8850d3b6cc)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Doc/library/weakref.rst

index 6dc5f90686c77843b04de720a122ca491302bd8c..27ed60b9074873872332427fe7dfb303053e01b2 100644 (file)
@@ -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.