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
As mentionned in the
Panel.poll()
documentation the return type should bebool
.Currently, the return type is leaved blank which Pyright interprets as
None
instead.