gh-89554: Document weakref type objects as classes#150678
Conversation
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.
Documentation build overview
|
|
Backward-compatibility check. Downstream |
|
Thanks @gaborbernat for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @gaborbernat for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @gaborbernat for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-150758 is a backport of this pull request to the 3.13 branch. |
|
GH-150759 is a backport of this pull request to the 3.14 branch. |
|
GH-150760 is a backport of this pull request to the 3.15 branch. |
…GH-150758) 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>
…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>
…GH-150760) 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>
weakref.ReferenceType,weakref.ProxyType, andweakref.CallableProxyTypeare classes (the type objects for weak references and proxies), but the documentation marks them with the.. data::directive, so:class:cross-references to them cannot resolve against a py:class target.Switch these three entries to
.. class::.weakref.ProxyTypesis left as.. data::since it is a sequence of the proxy type objects, not a type itself.Refs: gh-89554. Documentation-only change, so no
Misc/NEWSentry (skip news).