Comment on
Daily Godot Tip #5: You can enable Add Type Hints in the editor settings to make auto generated code be spawned in with static typing
Reply in thread
You can do this on a per project basis.
Under Project Setting > General enable advanced settings.
Then under Debug > GDScript you can set your preferred settings for warning and error. I like these settings as it's more like a statically typed language:
- Untyped Declaration: Error
- Unsafe Property Access: Error
- Unsafe Method Access: Error
- Unsafe Cast: Warn
- Unsafe Call Argument: Error