Documentation
get_base_type()
Get the base type associated to an annotation.
arg – A type (typically coming from inspect.get_annotations(…, eval_str=True)) or a parameter (typically coming from inspect.signature(…).parameters).