chiark / gitweb /
documentation/python: when signature fails, leave it up to the template.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 26 Sep 2024 18:17:40 +0000 (20:17 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 28 Sep 2024 01:44:29 +0000 (03:44 +0200)
commit2d39f769278db8cc77753577fe4a416bcbeef0b3
tree4595e63aac95f3833125d7f49be0693723d1236b
parentdebdcd37b6b0f1feec2da2d18b41a682a022bd06
documentation/python: when signature fails, leave it up to the template.

Passing an ellipsis to the template made sense when there was just a HTML
output, but for generated stubs that's not a valid syntax. So output a
single parameter with name being None instead, and let the template
decide what to do there.

In case of pybind, the code was inconsistently using the Unicode
ellipsis. Now it returns None too, and thus the template handles both the
same.
doc/documentation/python.rst
documentation/python.py
documentation/templates/python/details-function.html
documentation/templates/python/entry-function.html
documentation/test_python/inspect_builtin/docs.rst [new file with mode: 0644]
documentation/test_python/inspect_builtin/inspect_builtin.BaseException-310.html
documentation/test_python/inspect_builtin/inspect_builtin.BaseException.html
documentation/test_python/pybind_signatures/pybind_signatures.html
documentation/test_python/test_inspect.py
documentation/test_python/test_pybind.py