]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-89554: Document _thread.LockType as a class (GH-150684) (#150784)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Jun 2026 13:05:49 +0000 (15:05 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 13:05:49 +0000 (13:05 +0000)
commit861ab650c9dc3ac01cd9390d4d68df2a5b4aa51f
treebfa65f488e717f39762dd5c53d1f47ab7f44b932
parent3207263d10faa3e55f1320062a256a3f96103770
[3.14] gh-89554: Document _thread.LockType as a class (GH-150684) (#150784)

gh-89554: Document _thread.LockType as a class (GH-150684)

_thread.LockType is a class (the type of lock objects), but was documented
with the ".. data::" directive, so ":class:" cross-references to it cannot
resolve against a py:class target.

Switch the entry to ".. class::", move it next to the lock methods, and
document acquire(), release() and locked() as methods of the class.  Keep
the old _thread.lock.* URL fragments working with raw HTML anchors.
(cherry picked from commit e37ce569773b5e4e5c0e6042d4adfde2e9608f13)

Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Doc/library/_thread.rst