The bpy_prop_collection class doesn't have a __len__ method, which causes PyCharm to complain about any uses of len(...) on collections. The actual collections in the blender python console have __len__ in dir. Manually editing the file to add __len__ fixes it.
Edit: the Matrix type also supports len in practice - it returns the matrix size, i.e. 3 for 3x3, 4 for 4x4.
System Information
Description about the bug
The
bpy_prop_collection
class doesn't have a__len__
method, which causes PyCharm to complain about any uses oflen(...)
on collections. The actual collections in the blender python console have__len__
indir
. Manually editing the file to add__len__
fixes it.Edit: the
Matrix
type also supportslen
in practice - it returns the matrix size, i.e. 3 for 3x3, 4 for 4x4.