nutti / fake-bpy-module

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

Fix: get/set slice returns/accepts more than one item #277

Closed Road-hog123 closed 2 months ago

Road-hog123 commented 3 months ago

I keep making the mistake of writing a single-item tuple when I mean a homogenous tuple of undefined length, and nobody caught me on it.

Perhaps we should look into implementing tests for mod file changes?

Also the input for assignment does not have to a tuple, it can be any iterable.

nutti commented 2 months ago

Thank you @Road-hog123

Perhaps we should look into implementing tests for mod file changes?

Test case should be for the general case not for the specific class (like bpy class). So, we don't need to implement tests for this case.