Skip to content

Commit 5e8b835

Browse files
committed
gh-89554: Document weakref type objects as classes
ReferenceType, ProxyType and CallableProxyType are classes (the type objects for weak references and proxies), but were documented with the ".. data::" directive, so ":class:" cross-references to them cannot resolve against a py:class target. Switch these three entries to ".. class::". ProxyTypes is left as ".. data::" since it is a sequence of the proxy type objects, not a type itself.
1 parent 2f8f569 commit 5e8b835

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
@@ -324,17 +324,17 @@ same issues as the :meth:`WeakKeyDictionary.keyrefs` method.
324324
.. versionadded:: 3.4
325325

326326

327-
.. data:: ReferenceType
327+
.. class:: ReferenceType
328328

329329
The type object for weak references objects.
330330

331331

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

334334
The type object for proxies of objects which are not callable.
335335

336336

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

339339
The type object for proxies of callable objects.
340340

0 commit comments

Comments
 (0)