GDScript uses dynamic typing (Variable type can change and type is not inferred on creation) with optionalstatic typing.
Note:
Godot 4.x gives massive changes to GDScript compared to the 3.x line, including to the export keyword. Another change is that static typing will be 40% - 70% faster at runtime.