Skip to content

numpy-array-use-type-var is broken with pybind11 v3.0.0 #264

@sarlinpe

Description

@sarlinpe

Since 3.0.0, pybind11 produces numpy annotations with typing.Annotated:

- numpy.ndarray[numpy.float64[m, 3]])
+ typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 3]"])

This change was introduced in pybind/pybind11#5212. This breaks the option numpy-array-use-type-var of pybind11-stubgen, which now silently outputs the same as numpy-array-wrap-with-annotated. See PR #263 to track fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions