]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Jul 2026 07:48:12 +0000 (09:48 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2026 07:48:12 +0000 (09:48 +0200)
commit41d7b3cf49a8486eb9d267d95d3159c1c4e79745
treef9e2884dcbdd1026b31c194079e8ae9fd4050352
parenta47c03d5f14e710421c24ea645abe16380d18af0
[3.15] gh-151949: Fix Sphinx reference warnings in `Doc/library/lzma.rst` (GH-153878) (#154127)

* 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.
(cherry picked from commit 1530b38c82f8f09c3c29b2829cd1d8c1db830761)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
* Fix nitpicks

---------

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Doc/library/lzma.rst
Doc/tools/.nitignore