nutti / fake-bpy-module

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

Operator.poll_message_set regression #231

Closed Andrej730 closed 1 month ago

Andrej730 commented 1 month ago

fake-bpy-module-latest==20240522


import bpy

class InspectFromObject(bpy.types.Operator):
    @classmethod
    def poll(cls, context):
        # Argument missing for parameter "args"
        cls.poll_message_set("Test")
        return False

Not sure when this issue occurred but it seems it wasn't present in #133 1) poll_message_set is expecting some other argument args and it's not optional (no idea what args is for here though)

2) args argument is a single argument but it actually represent variable number of position arguments, see Blender docs.

image

image

nutti commented 1 month ago

This issue is now fixed.