Redraw bpy.types.Panel

Hello,

How can I force a Panel repaint from an operator?

Thanks

Found this way, but I’m not sure it is the right way


            for area in bpy.context.window.screen.areas:
                area.tag_redraw()