nutti / fake-bpy-module

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

mathutils Color, Euler should have the __getitem__() method #157

Closed JonathanPlasse closed 5 months ago

JonathanPlasse commented 9 months ago

The following code is valid

from mathutils import Color, Euler

Color()[0]
Euler()[0]

This is the following code.

class Color:
    def __getitem__(self, key: int) -> float:
        ...

class Euler:
    def __getitem__(self, key: int) -> float:
        ...
nutti commented 5 months ago

This issue is now fixed