@@ -589,12 +589,12 @@ and :c:data:`PyType_Type` effectively act as defaults.)
589589
590590   For :ref: `statically allocated type objects  <static-types >`,
591591   the *tp_name * field should contain a dot.
592-    Everything before the last dot is made accessible as the :attr: `__module__ `
592+    Everything before the last dot is made accessible as the :attr: `~type. __module__ `
593593   attribute, and everything after the last dot is made accessible as the
594-    :attr: `~definition .__name__ ` attribute.
594+    :attr: `~type .__name__ ` attribute.
595595
596596   If no dot is present, the entire :c:member: `~PyTypeObject.tp_name ` field is made accessible as the
597-    :attr: `~definition .__name__ ` attribute, and the :attr: `__module__ ` attribute is undefined
597+    :attr: `~type .__name__ ` attribute, and the :attr: `~type. __module__ ` attribute is undefined
598598   (unless explicitly set in the dictionary, as explained above).  This means your
599599   type will be impossible to pickle.  Additionally, it will not be listed in
600600   module documentations created with pydoc.
@@ -1149,7 +1149,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
11491149
11501150   .. c :macro :: Py_TPFLAGS_MANAGED_DICT 
11511151
1152-        This bit indicates that instances of the class have a `` __dict__ ` `
1152+        This bit indicates that instances of the class have a `~object. __dict__ `
11531153      attribute, and that the space for the dictionary is managed by the VM.
11541154
11551155      If this flag is set, :c:macro: `Py_TPFLAGS_HAVE_GC ` should also be set.
@@ -1350,8 +1350,8 @@ and :c:data:`PyType_Type` effectively act as defaults.)
13501350.. c :member :: const  char * PyTypeObject.tp_doc 
13511351
13521352    An optional pointer to a NUL-terminated C string giving the docstring for this
1353-    type object.  This is exposed as the :attr: `__doc__ ` attribute on the type and 
1354-    instances of the type.
1353+    type object.  This is exposed as the :attr: `~type. __doc__ ` attribute on the
1354+    type and  instances of the type.
13551355
13561356   **Inheritance: **
13571357
@@ -2028,7 +2028,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
20282028    A collection of subclasses.  Internal use only.  May be an invalid pointer.
20292029
20302030   To get a list of subclasses, call the Python method
2031-    :py:meth: `~class .__subclasses__ `.
2031+    :py:meth: `~type .__subclasses__ `.
20322032
20332033   .. versionchanged :: 3.12 
20342034
0 commit comments