Return a dictionary of theme options and their values.
(self, overrides: dict[str, Any] | None = None)
| 129 | return value |
| 130 | |
| 131 | def get_options(self, overrides: dict[str, Any] | None = None) -> dict[str, Any]: |
| 132 | """Return a dictionary of theme options and their values.""" |
| 133 | if overrides is None: |
| 134 | overrides = {} |
| 135 | |
| 136 | options = self._options.copy() |
| 137 | for option, value in overrides.items(): |
| 138 | if option not in options: |
| 139 | logger.warning(__('unsupported theme option %r given'), option) |
| 140 | else: |
| 141 | options[option] = value |
| 142 | |
| 143 | return options |
| 144 | |
| 145 | def _cleanup(self) -> None: |
| 146 | """Remove temporary directories.""" |