https://github.com/python/cpython/commit/10c421970beca89df92a918f2247fb8850d3b6cc
commit: 10c421970beca89df92a918f2247fb8850d3b6cc
branch: main
author: Bernát Gábor <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-06-02T10:59:15+03:00
summary:

gh-89554: Document weakref type objects as classes (#150678)

Use the "class" directive instead of "data" for ReferenceType,
ProxyType and CallableProxyType.

files:
M Doc/library/weakref.rst

diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst
index 87dd860da4dcc4..318da931fc314c 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.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to