I'm referring to the documentation available here to understand how the return types are defined while using function annotations.
I couldn't understand what the str in Dict[str, Any] refers to. Does str refer to the dictionary's keys and Any (meaning, it can be a string or an int) refer to the type of the dictionary's value?
EDIT:
In the above-mentioned link, it is mentioned
The PEP 484 type Dict[str, Any] would be suitable, but it is too lenient, as arbitrary string keys can be used, and arbitrary values are valid.
Could someone explain what does arbitrary string keys refer to? I understand keys are strings, but when we say arbitrary string keys do we just mean that the dictionary can take any key that is a string? Or does the word arbitrary hold any other significance here?