Skip to content

Mesh.from_pydata() "vertices" parameter has incomplete type #377

@arcusmaximus

Description

@arcusmaximus

The "vertices" parameter of bpy.types.Mesh.from_pydata() was originally untyped, but in fake-bpy-module version 20250606, it received the type Iterable[Sequence[float]]. This is better than before, but it's not complete: it should be Iterable[Sequence[float] | Vector]. Right now, passing a list of Vectors (which works just fine at runtime) raises a type error.

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