from typing import List
from typing import Tuple
from typing import Any
import configparser


def config_items(path: str) -> List[Tuple[Tuple[str, str], Any]]:
    """Return config file option, value pairs."""
    config = configparser.ConfigParser()
    config.read(path)

    res = []
    for section in config.sections():
        for opt, val in config.items(section):
            res.append(((section, opt), val))
    return res