Godot Version
4.4.1.stable
Question
I was wondering if there is any way to parameterise property types and subsequently type hint a custom class, much the same way you can type hint an Array for example. Below is hypothetically what it might look like:
var array_of_int: Array[int]
class Foo(T):
var bar: T
var foo_of_int: Foo[int]
For the record, I had Python’s Generics and TypeVar in mind. From what I’ve seen, Godot’s Variant isn’t up to the task? Thanks!