Skip to content

Remove unnecessary :func: parentheses #123492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
mattwang44 opened this issue Aug 30, 2024 · 1 comment
Closed
3 tasks done

Remove unnecessary :func: parentheses #123492

mattwang44 opened this issue Aug 30, 2024 · 1 comment
Labels
docs Documentation in the Doc dir

Comments

@mattwang44
Copy link
Contributor

mattwang44 commented Aug 30, 2024

Documentation

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

.. bad
:func:`!locale.resetlocale()`

.. good
:func:`!locale.resetlocale`

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

TODO:

  • fix on main branch
  • backport to 3.12
  • backport to 3.13

Linked PRs

@hugovk
Copy link
Member

hugovk commented Aug 30, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants