Compute the annotations dict for an object.
inspect.get_annotations(obj, *, globals=None, locals=None, eval_str=False)