Godot Static Function, Text Editor → Completion → Add Type Hints: On (default in Godot 4.