For instance, I want
from typing import Dict, List
check_derived(Dict[int, int], Dict) == True
check_derived(List[str], List) == True
check_derived(List, Dict) == False
and so on.
Do I have to write my own mapping of derived classes to classes in order to achieve this? Seems hacky.