nutti / fake-bpy-module

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

bpy.types.Panel.poll() return type should bool #150

Closed JonathanPlasse closed 11 months ago

JonathanPlasse commented 11 months ago

As mentionned in the Panel.poll() documentation the return type should be bool.

Currently, the return type is leaved blank which Pyright interprets as None instead.

    @classmethod
    def poll(cls, context: 'Context'):
        ''' If this method returns a non-null output, then the panel can be drawn

        :param context: 
        :type context: 'Context'
        '''
        pass
nutti commented 11 months ago

This issue is now fixed.

JonathanPlasse commented 11 months ago

Thank you very much.