The names and values of all options.

        .. versionadded:: 3.1

def as_dict(self) -> Dict[str, Any]:
        """The names and values of all options.

        .. versionadded:: 3.1
        """
        return dict((opt.name, opt.value()) for name, opt in self._options.items())