Emitting complete type information in boost-python docstrings
Hello, I’m not sure if this is the right forum for this question, but here goes: I work on a large scientific codebase that is heavily tied to boost, and that most users interact with via boost-python. Lately I have been working on generating PEP 484 type stubs for the ~1000 classes it exposes in order to enable static type checking and code completion in editors. This required some modifications to boost-python itself in order to get complete type information into the generated docstrings, where it can be consumed by external tooling to generate stubs: https://github.com/boostorg/python/pull/417 I have found this quite useful, and suspect it might be useful for others as well to have it in a Boost release. Can anyone give me a pointer as to how to make that happen, or let me know where or whom I should be asking instead? I asked on cplusplus-sig@python.org mailto:cplusplus-sig@python.org, which was the place many years ago, but that list seems to have died out. Many thanks in advance! Cheers, Jakob ------------------------------------------------------- Jakob van Santen DESY - Deutsches Elektronen-Synchrotron Platanenallee 6, D-15738, Zeuthen Office 2L/32 +49 (0)33762-7-7233 -------------------------------------------------------
Hi Jakob,
On 29. Apr 2024, at 09:46, Jakob van Santen via Boost
wrote: This required some modifications to boost-python itself in order to get complete type information into the generated docstrings, where it can be consumed by external tooling to generate stubs:
this is a nice work, but it is a fairly extensive patch so takes some time to review. I think you did right to ask here about feedback. Stefan Seefeld is the maintainer, he is responsible. Stefan rarely comments here, but I think he is still following the mailing list, so let's see. It is nice to see people still using Boost-Python over pybind11.
participants (2)
-
Hans Dembinski
-
Jakob van Santen