nutti / fake-bpy-module

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

Fix: slice support for bpy_prop_array and bpy_prop_collection #241

Closed Road-hog123 closed 1 month ago

Road-hog123 commented 1 month ago

__getitem__(), __setitem__() and __delitem__() for bpy_prop_array and bpy_prop_collection now all support passing a slice as a key, with overloads to change the return/input type to tuple[GenericType] when doing so.

nutti commented 1 month ago

@JonathanPlasse

Thank you for reviewing. If the current change looks good to you, please approve it before merging this PR.

nutti commented 1 month ago

@Road-hog123 @JonathanPlasse

Thanks! I merged this PR now.