Skip to content

Warn for unnecessary :func: parentheses #114

Closed
@hugovk

Description

@hugovk

Sometimes authors add parentheses like this:

:func:`!locale.resetlocale()`

But they're not needed, because Sphinx will add them anyway to the rendered output.

Sphinx Lint could warn so authors instead use:

:func:`!locale.resetlocale`

Re: https://github.com/python/cpython/pull/123132/files#r1721239362

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions