In adding type hints to python functions which is preferred?
from typing import List, Dict
def example_1() -> List[Dict]:
pass
def example_2() -> List[dict]:
pass
I know that if I wanted to specify the key and value types in the dict I'd need to use Dict, but I don't want to.
Is there any difference between the two? If so, which is preferred?