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

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