In one of my classes, I've created a function that returns self.
Does anybody know of a way define the return type with static typing?
I know this can be done if using class_name, but I want to keep the global namespace clean.
# MyClass.gd
extends Node
func self_returning_func(): # -> MyClass
return self