from typing import Any


def resolve_dotted_path(instance: Any, path: str) -> Any:
    """
    Walk recursively the path separated by dots.
    """
    for part in path.split('.'):
        instance = getattr(instance, part)
    return instance