from typing import Any
import typing


def resolve_type_annotation(obj: Any) -> Any:
    """Returns the non-generic class for generic aliases of the typing module.

    If the input is no generic typing alias, the input itself is returned.

    Example: if the input object is `typing.Dict`, this method will return the
    concrete class `dict`.
    """
    if isinstance(obj, typing._GenericAlias):  # type: ignore[attr-defined]
        return obj.__origin__
    else:
        return obj