godot icon indicating copy to clipboard operation
godot copied to clipboard

4.4 Dev 3. Inbuilt functions that return dictionaries do not return a correct fully typed dictionary.

Open produno opened this issue 4 months ago • 8 comments

Tested versions

Reproducible in v4.4.dev3.official [f4af8201b]

System information

Godot v4.4.dev3 - Windows 10.0.22631 - Single-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 32.0.15.6109) - 13th Gen Intel(R) Core(TM) i7-13700K (24 threads)

Issue description

I am sure maintainers may already be aware but currently inbuilt functions such as get_datetime_dict_from_system does not return a correctly typed dictionary, but instead returns Dictionary[Variant, Variant] when I believe this one in particular should be Dictionary[String, Variant].

Steps to reproduce

Try and do something like:

var time: Dictionary[String, Variant] = Time.get_datetime_dict_from_system().

Minimal reproduction project (MRP)

N/A

produno avatar Oct 04 '24 11:10 produno