nutti / fake-bpy-module

Fake Blender Python API module collection for the code completion.
MIT License
1.37k stars 97 forks source link

`bmesh.types.BMFace.verts` doesn't specify `BMVert` as generic for `BMElemSeq` #287

Closed Andrej730 closed 2 months ago

Andrej730 commented 2 months ago

See example issue:

import bmesh
from typing import assert_type

bm = bmesh.new()
face = bm.faces[0]
verts = [i for i in face.verts]
# "assert_type" mismatch: expected "list[BMVert]" but received "list[Unknown | BMVert]"
assert_type(verts, list[bmesh.types.BMVert])
nutti commented 2 months ago

This issue is now fixed.