Source code Question - Dictionary autocomplete

Godot Version

Godot 4.2

Question

Functions that return a Dictionary, such as time, seems to have editor autocomplete. Example:

var dt = Time.get_datetime_dict_from_system(true)
print(dt.hour)    #autocompleted by editor

How do I achieve that effects in my Module that also returns a Dictionary ?

var fo = MyModule.new()
var dict = fo.somedict()
print(dict.DictKey) #not autocompleted by editor, but works :)

Set the static type of the dict variable to Dictionary, or set the static return type of the somedict() method to Dictionary.