Guide to the Godot game engine/Programming/GDScript/Static typing

Static typing
Many programming languages are static. For GDScript, it's entirely optional. Here you will learn how to make your code safer and use static typing.

Staticly typed functions
Do not confuse this for static functions.

tells Godot the function returns nothing.

tells Godot that the function returns. This can be any Object, or any variable type.

Use nothing to hint the function can return anything.

Arguments can also be made static:

Statically typed variables
simple. That's it.

You can also use  to automatically use whatever "something" is.