Scroll down to the very bottom: “Static types improve GDScript performance and more optimizations are planned for the future.”
But I still use dynamic typing for convenience. The speed boost is hardly recognizable in small projects.
for void specifically it likely doesn’t allow for any extra optimization assuming you aren’t using the function in any expressions (which you shouldn’t be if it never returns a value) it should already be efficient without a return type on the function.
It does help by helping gdscript give you better errors and warnings to help notice when you’re expecting a return but it doesn’t return anything or the function shouldn’t return anything but in actuality it does