Skip to content
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

[3.12] tp_flags docs: fix indentation (GH-106420) #106442

Merged
merged 1 commit into from
Jul 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Doc/c-api/typeobj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1143,27 +1143,27 @@ and :c:type:`PyType_Type` effectively act as defaults.)
:const:`Py_TPFLAGS_IMMUTABLETYPE` flag set. For extension types, it is
inherited whenever :c:member:`~PyTypeObject.tp_descr_get` is inherited.

.. data:: Py_TPFLAGS_MANAGED_DICT
.. data:: Py_TPFLAGS_MANAGED_DICT

This bit indicates that instances of the class have a ``__dict__``
attribute, and that the space for the dictionary is managed by the VM.
This bit indicates that instances of the class have a ``__dict__``
attribute, and that the space for the dictionary is managed by the VM.

If this flag is set, :const:`Py_TPFLAGS_HAVE_GC` should also be set.
If this flag is set, :const:`Py_TPFLAGS_HAVE_GC` should also be set.

.. versionadded:: 3.12
.. versionadded:: 3.12

**Inheritance:**

This flag is inherited unless the
:c:member:`~PyTypeObject.tp_dictoffset` field is set in a superclass.


.. data:: Py_TPFLAGS_MANAGED_WEAKREF
.. data:: Py_TPFLAGS_MANAGED_WEAKREF

This bit indicates that instances of the class should be weakly
referenceable.
This bit indicates that instances of the class should be weakly
referenceable.

.. versionadded:: 3.12
.. versionadded:: 3.12

**Inheritance:**

Expand Down