def getTrueAnnotationType(annotation):
    """
    Resolve the supertype of an annotation type possibly created using the typing module.

    :param annotation: A type object.
    :return: The original object or its supertype.
    """
    return getattr(annotation, '__supertype__', annotation)