pybind11-stubgen icon indicating copy to clipboard operation
pybind11-stubgen copied to clipboard

Generate stubs for python modules

Results 30 pybind11-stubgen issues
Sort by recently updated
recently updated
newest added

When a function is overloaded, documentation comments is placed in wrong place. For example, the C++ wrapper is below: ```cpp #include #include int add_int(int x, int y) { return x...

enhancement
help wanted

Currently, property signatures are not considered when determining module imports. Just added a few lines that fixes that. :slightly_smiling_face:

Attributes with a single leading underscore are considered private, not type info should be generated (by default). Also see https://mypy.readthedocs.io/en/stable/stubgen.html#cmdoption-stubgen-include-private The following fragment in `AttributeStubsGenerator.to_lines` seems to do the job:...

enhancement

Hi, I came across an issue with alias'. This snippet ```cpp #include PYBIND11_MODULE(foo, m) { struct Color { int value; }; pybind11::class_(m, "Color") .def_readwrite("value", &Color::value); m.attr("Colour") = m.attr("Color"); } ```...

At the point when `mypy.stubgen` (or other) will be able to generate full-featured stubs for pybind11 there would be no need in this tool. Things to ship: - [x] function...

help wanted

This pull request include an import for each submodule of a module. One might need to use definitions from the submodule(s) on the top-level module, but as it is now,...

Thanks a lot for this nice toolbox. As I'm mostly using Boost.Python, I have added the possibility to parse libraries compiled with Boost.Python. I'm open to any change if needed....

Same problem as https://github.com/sizmailov/pybind11-stubgen/issues/33, but for properties instead! ``` @property def m(self) -> std::mutex: """ :type: std::mutex """ ``` Looking at it... it seems like one should do the `ast.parse`...

enhancement

Similar to issue https://github.com/sizmailov/pybind11-stubgen/issues/86 but when using `pybind11::buffer`. This time the solution is not as simple as adding a `class buffer`, because a `pybind11::buffer` represents any class that satisfies the...

enhancement

Hi, has someone figured out how to see the individual docstrings of overloaded functions in Sphinx using `autodoc`? Stubgen properly has per-method doc strings https://github.com/AMReX-Codes/pyamrex/blob/793ede5ab721e76f3fa547ae86249a1120f6bfb3/src/amrex/space3d/amrex_3d_pybind/__init__.pyi#L5155-L5208 as provided by my pybind11...