A statically typed language doesnt prevent developers from using the equivalent of dict[str, Any].

Well, some do. Let's not pretend all static type systems are the same.