You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment pybind11-stubgen does not have fine-grained type processing and operates on whole strings. Therefore the simplest "solution" like plain replacements (e.g. bool_ -> bool) on stubgen side might be harmful.
sizmailov
changed the title
Generating bad base types?
Generating bad types for py::bool_ and py::float_Jan 15, 2022
The PR is merged in pybind11 master. If you are affected by this issue consider updating to latest pybind11 version.
I'm closing this as "won't fix" due to lack readily available solution on stubgen side.
I use
using PyBaseTypes = std::variant<py::bool_, py::int_, py::float_, py::str, py::bytes, py::object>;
Generated then:
I would expect:
I'm not quite sure if the fault is here or with pybind11.
bybind11: 2.9.0
pybind11-stubgen: 0.10.5
The text was updated successfully, but these errors were encountered: