Automatic strict type when importing nodes to a script to avoid bugs

Godot Version

4.2.2

Question

This is insane. I spent an hour tracking this error:
image

This could’ve been solve if Godot automatically type strict imports.
image

Does Godot have that? Please guide me how can I turn it on. Thank you.

:raised_hands: quote=“yvantot, post:1, topic:74085”]
This could’ve been solve if Godot automatically type strict imports.
[/quote]

Godot has it :heart_eyes:!
Go to Editor > Editor Settings > Text Editor > Completion > Add Type Hints

It’s a God sent, thank you Godot devs! :raised_hands:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.