What is exactly the 'right' way for type hinting? My IDE (and resulting code) works fine for type hints using either of below options, but some types can be imported from the typing module. Is there a preference for using the import from the typing module over builtins (like list or dict)?
Examples:
from typing import Dict
def func_1(arg_one: Dict) -> Dict:
pass
and
def func_2(arg_one: dict) -> dict:
pass