Although this doesn't solve the problem but is just a work around. Do you have any idea how to solve this issue?
I know that stubs are usually used with testing and for that matter, I can use the flag you suggested. But still this error should not appear.
Hi,
the stubs are just for auto completion in editors. You can also call pybind11-stubgen manually to create them and just copy them to the python installation dir if you want autocompletion.
For some help in pybind11-stubgen see here
github.com/sizmailov/pybind11-stubgen