nutti / fake-bpy-module

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

Operator does not implement report function #144

Closed cmbasnett closed 8 months ago

cmbasnett commented 9 months ago

System Information

Expected behavior

The report function should be implemented for the Operator type.

Description about the bug

The report function is missing for the Operator type.

Screenshots/Files [Optional]

image

Additional comments [Optional]

nutti commented 9 months ago

@cmbasnett

This is wired to me. Function report is defined in the bpy.types.Operator class like this.

    def report(self, type: typing.Optional[
            typing.Union[typing.Set[str], typing.Set[int]]],
               message: typing.Union[str, typing.Any]):
        ''' report

        :param type: Type
        :type type: typing.Optional[typing.Union[typing.Set[str], typing.Set[int]]]
        :param message: Report Message
        :type message: typing.Union[str, typing.Any]
        '''
        pass

Please check your installed fake-bpy-module.

nutti commented 8 months ago

@cmbasnett

Any update for above comment?

cmbasnett commented 8 months ago

Sorry, I just looked into it and this was my own fault. I was importing bpy_types.Operator, not bpy.types.Operator 😢