]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878)
authorVyron Vasileiadis <hi@fedonman.com>
Sun, 19 Jul 2026 13:10:47 +0000 (16:10 +0300)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 13:10:47 +0000 (08:10 -0500)
commit1530b38c82f8f09c3c29b2829cd1d8c1db830761
treee47803730c9b97a9715ccef7c283029dbbc03f05
parentb8ec956716c183430a93929e6415ceed74089af1
gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878)

The lzma module constants (FORMAT_*, CHECK_*, PRESET_*, FILTER_*, MODE_*
and MF_*) were referenced with the :const: role throughout the module
documentation but were never defined as reference targets, producing
"reference target not found" warnings under nitpicky mode.

Document these public constants with .. data:: directives, following the
convention used by the signal, socket and ssl modules, so the existing
references resolve. The now-redundant inline descriptions of the format
and check constants are condensed into linked references.
Doc/library/lzma.rst
Doc/tools/.nitignore