from typing import Type


def _type_to_key(t: Type) -> str:
    """
    Common function for transforming a class type to its associated string key
    for use in configuration semantics.

    :param t: Type to get the key for.
    :return: String key for the input type.
    """
    return f"{t.__module__}.{t.__name__}"