from typing import Optional
from typing import Any


def override_learn_options(
    learn_options_override: Optional[dict[str, str]], learn_options: dict[str, str]
) -> dict[str, Any]:
    """
    override all keys seen in learn_options_override to alter learn_options
    """
    if learn_options_override is not None:
        for k in learn_options_override:
            learn_options[k] = learn_options_override[k]
    return learn_options