nutti / fake-bpy-module

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

Matrix.Rotation is not generated as a classmethod #192

Closed JonathanPlasse closed 2 months ago

JonathanPlasse commented 3 months ago

Expected behavior

Matrix.Rotation should be generated as a class method but is currently generated as a normal method (testing on commit 890e48724e5fb008bd8154589947df04535659f9 for Blender 3.6)

Description about the bug

The .pyi look like this

class Matrix:
    def Rotation(
        self,
        angle: float,
        size: int,
        axis: typing.Union["Vector", str, typing.Sequence[float]],
    ) -> "Matrix": ...

It should look like this

class Matrix:
    @classmethod
    def Rotation(
        cls,
        angle: float,
        size: int,
        axis: typing.Union["Vector", str, typing.Sequence[float]],
    ) -> "Matrix": ...
nutti commented 2 months ago

This issue seems invalid for the current version.