]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89554: Document _thread.LockType as a class (#150684)
authorBernát Gábor <gaborjbernat@gmail.com>
Tue, 2 Jun 2026 12:55:01 +0000 (05:55 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 12:55:01 +0000 (14:55 +0200)
commite37ce569773b5e4e5c0e6042d4adfde2e9608f13
tree4a590a83cc07d9e38ca310f238b6a14837784821
parent025cc26b406f017505dbed8af7820106d1ff2885
gh-89554: Document _thread.LockType as a class (#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.
Doc/library/_thread.rst