-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Fix Sphinx warnings in C API doc #107274
Fix Sphinx warnings in C API doc #107274
Conversation
Hum. I already created PR #107164 but this one is supposed to be more complete. But then I fixed more and more warnings in a local branch, and quickly I went to too many directions. Now I'm confused and I'm not sure how to split this work. So instead I created PR #107278 to first fix warnings like |
@@ -13,7 +13,7 @@ are available, however. | |||
|
|||
.. c:function:: int PyBool_Check(PyObject *o) | |||
|
|||
Return true if *o* is of type :c:data:`PyBool_Type`. This function always | |||
Return true if *o* is of type :c:data:`!PyBool_Type`. This function always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would not be better to add the documentation for PyBool_Type?
@@ -60,7 +60,7 @@ See :ref:`stable` for a discussion of API and ABI stability across versions. | |||
|
|||
Use this for numeric comparisons, e.g. ``#if PY_VERSION_HEX >= ...``. | |||
|
|||
This version is also available via the symbol :data:`Py_Version`. | |||
This version is also available via the symbol :c:var:`Py_Version`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reworked this change into a serie of changes: I created issue #107298. I abandon this PR. |
📚 Documentation preview 📚: https://cpython-previews--107274.org.readthedocs.build/