Skip to content

Commit bd4fe0f

Browse files
[3.14] gh-89554: Document weakref type objects as classes (GH-150678) (GH-150759)
Use the "class" directive instead of "data" for ReferenceType, ProxyType and CallableProxyType. (cherry picked from commit 10c4219) Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
1 parent 7d66158 commit bd4fe0f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/weakref.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,17 +329,17 @@ same issues as the :meth:`WeakKeyDictionary.keyrefs` method.
329329
.. versionadded:: 3.4
330330

331331

332-
.. data:: ReferenceType
332+
.. class:: ReferenceType
333333

334334
The type object for weak references objects.
335335

336336

337-
.. data:: ProxyType
337+
.. class:: ProxyType
338338

339339
The type object for proxies of objects which are not callable.
340340

341341

342-
.. data:: CallableProxyType
342+
.. class:: CallableProxyType
343343

344344
The type object for proxies of callable objects.
345345

0 commit comments

Comments
 (0)