Skip to content

Argparse docs have a strange fragment identifier for name or flags #125296

@savannahostrowski

Description

@savannahostrowski

Bug report

Bug description:

Clicking on the "name or flags" parameter under the add_argument method docs links to #id5 instead of #name-or-flags. The jump target isn't broken, but it has a slightly worse UX. It looks like this behaviour changed from the 3.11 docs onward.

CPython versions tested on:

3.12, 3.13, CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Labels

3.12only security fixes3.13bugs and security fixes3.14bugs and security fixesdocsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

Status

Doc issues

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions