Skip to content

Convert unsemantic monospaced directives to :ref: #111151

@InSyncWithFoo

Description

@InSyncWithFoo

Directives like :class:, :func:, etc. auto-apply a monospaced font to the displayed text, which doesn't look very nice if used unsemantically. :ref: directives are the way to go when it comes to internal links with non-code text, and most of other internal links already follow this.

For example, this line in Doc/library/typing.rst:

variadic number of arguments, :func:`overloaded functions <overload>`, or

...should be changed to:

variadic number of arguments, :ref:`overloaded functions <overload>`

And this line:

.. decorator:: overload

...needs an explicit target:

.. _overload:

.. decorator:: overload

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions