gh-123492: Remove unnecessary :func: parentheses (#123493)

This commit is contained in:
Wei-Hsiang (Matt) Wang 2024-08-30 19:34:09 +08:00 committed by GitHub
parent 8aaf7525ab
commit 103a0470e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 154 additions and 154 deletions

View file

@ -513,7 +513,7 @@ were defined.
Descriptors are a powerful, general purpose protocol. They are the mechanism
behind properties, methods, static methods, class methods, and
:func:`super()`. They are used throughout Python itself. Descriptors
:func:`super`. They are used throughout Python itself. Descriptors
simplify the underlying C code and offer a flexible set of new tools for
everyday Python programs.

View file

@ -9,7 +9,7 @@ Enum HOWTO
.. currentmodule:: enum
An :class:`Enum` is a set of symbolic names bound to unique values. They are
similar to global variables, but they offer a more useful :func:`repr()`,
similar to global variables, but they offer a more useful :func:`repr`,
grouping, type-safety, and a few other features.
They are most useful when you have a variable that can take one of a limited
@ -167,7 +167,7 @@ And a function to display the chores for a given day::
answer SO questions
In cases where the actual values of the members do not matter, you can save
yourself some work and use :func:`auto()` for the values::
yourself some work and use :func:`auto` for the values::
>>> from enum import auto
>>> class Weekday(Flag):

View file

@ -307,7 +307,7 @@ Available static markers
.. object:: gc__start(int generation)
Fires when the Python interpreter starts a garbage collection cycle.
``arg0`` is the generation to scan, like :func:`gc.collect()`.
``arg0`` is the generation to scan, like :func:`gc.collect`.
.. object:: gc__done(long collected)