def get_type_qualname(cls):
    """Get a string uniquely identifying the supplied class"""
    if isinstance(cls, str):
        return cls
    if cls.__module__ == "__main__":
        return cls.__qualname__
    return f"{cls.__module__}.{cls.__qualname__}"