gh-107091: Fix some uses of :c:member: role (GH-107129)

This commit is contained in:
Serhiy Storchaka 2023-07-26 22:16:06 +03:00 committed by GitHub
parent 737d1da074
commit af61cb9c78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 14 deletions

View file

@ -467,7 +467,7 @@ Module State Access from Slot Methods, Getters and Setters
Slot methods—the fast C equivalents for special methods, such as
:c:member:`~PyNumberMethods.nb_add` for :py:attr:`~object.__add__` or
:c:member:`~PyType.tp_new` for initialization—have a very simple API that
:c:member:`~PyTypeObject.tp_new` for initialization—have a very simple API that
doesn't allow passing in the defining class, unlike with :c:type:`PyCMethod`.
The same goes for getters and setters defined with
:c:type:`PyGetSetDef`.