Skip to content

Remove unnecessary :func: & :meth: parentheses from reST content #12847

@mattwang44

Description

@mattwang44

Describe the bug

The func & meth role's parentheses are unnecessary as Sphinx will add them to the rendered output.

.. bad
:func:`sphinx.locale._()`

.. good
:func:`sphinx.locale._`

We're introducing a new rule to the sphinx-lint (issue & PR) and, since sphinx-lint utilizes Sphinx doc content in the CI, we'd like to also fix the issue in doc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions