Disable argument color output when building the docs.
Review Request #14802 — Created Feb. 8, 2026 and submitted
Starting in Python 3.14,
argparseoutputs color by default. We use
argparseto generate parts of our documentation, and this resulted in
ANSI escape sequences messing up the generated output.We now have options for disabling color output when creating a parser,
and explicitly disable for the docs.
Unit tests pass on all supported versions of Python.
Built the docs. Verified that the usage docs no longer had the ANSI
sequences for standard commands or multi-commands/subcommands.
| Summary | ID |
|---|---|
| acd7e7096334f275898e1744061d3a6385e5b128 |
- Change Summary:
-
Removed a docs fix intended for another change.
- Testing Done:
-
~ Unit tests pass.
~ Unit tests pass on all supported versions of Python.
Built the docs. Verified that the usage docs no longer had the ANSI
sequences for standard commands or multi-commands/subcommands. - Commits:
-
Summary ID c0107c1f4c5b869225df99c8d5da8e0ad52e50cd acd7e7096334f275898e1744061d3a6385e5b128
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.