]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-89554: Document weakref type objects as classes (#150678)
authorBernát Gábor <gaborjbernat@gmail.com>
Tue, 2 Jun 2026 07:59:15 +0000 (00:59 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 07:59:15 +0000 (10:59 +0300)
Use the "class" directive instead of "data" for ReferenceType,
ProxyType and CallableProxyType.

Doc/library/weakref.rst

index 87dd860da4dcc464eb6982fdfc46d2cd9fdf4c78..318da931fc314cdc2c23a882b35fde8fa26a67e6 100644 (file)
@@ -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.