from typing import Any
import importlib


def get_attr_from_module(module_name: str, attr_name: str) -> Any:
    """Return attribute from a given module."""

    module = importlib.import_module(module_name)
    return getattr(module, attr_name)