from typing import Any


def _missing_args_msg(t: Any) -> str:
    """ Error message for missing :attr:`__args__` attribute on a type `t`. """
    return f"For type {repr(t)}, expected '__args__' attribute."