sizmailov / pybind11-stubgen

Generate stubs for python modules
Other
218 stars 44 forks source link

Add support for additional numpy data types #219

Closed Yc7521 closed 3 months ago

Yc7521 commented 3 months ago

When --numpy-array-use-type-var is specified and the parameter of numpy.array is numpy.uint8, it still generates numpy.ndarray[numpy.uint8].

sizmailov commented 3 months ago

Thanks!

Note: there are more primitive numpy types missed in the snippet, but they probably do not appear in bindings.