GDScript - Can dictionaries be typified?

Godot Version 4.3 Beta 1

Question

I made a static function to load resources and return a dictionary from the function.

I would like to specify that the key of the dictionary is

String

and the value of the key is

Cell (A class I have written)

Is this possible?

It’s a longstanding issue, though a promising pull request for 4.4 is in the works.

1 Like

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