Path 1: 25 calls (0.6)

None (25)

1def options_and_values(
2        self, options: Options | None = None
3    ) -> Iterator[tuple[str, OptionDict, Any]]:  # pragma: no cover
4        """DEPRECATED."""
5        warnings.warn(
6            "options_and_values has been deprecated. It will be removed "
7            "in a future release.",
8            DeprecationWarning,
9            stacklevel=2,
10        )
11        if options is None:
12            options = self.options
13        for optname, optdict in options:
14            with warnings.catch_warnings():
15                warnings.filterwarnings("ignore", category=DeprecationWarning)
16                yield optname, optdict, self.option_value(optname)
            

Path 2: 17 calls (0.4)

None (17)

tuple (109)

1def options_and_values(
2        self, options: Options | None = None
3    ) -> Iterator[tuple[str, OptionDict, Any]]:  # pragma: no cover
4        """DEPRECATED."""
5        warnings.warn(
6            "options_and_values has been deprecated. It will be removed "
7            "in a future release.",
8            DeprecationWarning,
9            stacklevel=2,
10        )
11        if options is None:
12            options = self.options
13        for optname, optdict in options:
14            with warnings.catch_warnings():
15                warnings.filterwarnings("ignore", category=DeprecationWarning)
16                yield optname, optdict, self.option_value(optname)