]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix `c-api/file.rst` indexes (GH-114608)
authorNikita Sobolev <mail@sobolevn.me>
Sat, 27 Jan 2024 08:45:07 +0000 (11:45 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2024 08:45:07 +0000 (10:45 +0200)
Doc/c-api/file.rst

index 0a03841e467cad94de41a5386ec56f0ae33254b9..d3a78c588454e8ef5b9d8a044522f0865c4d9bd6 100644 (file)
@@ -65,9 +65,10 @@ the :mod:`io` APIs instead.
    Overrides the normal behavior of :func:`io.open_code` to pass its parameter
    through the provided handler.
 
-   The handler is a function of type:
+   The *handler* is a function of type:
 
-   .. c:type:: Py_OpenCodeHookFunction
+   .. c:namespace:: NULL
+   .. c:type:: PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *)
 
       Equivalent of :c:expr:`PyObject *(\*)(PyObject *path,
       void *userData)`, where *path* is guaranteed to be