(t: Theme)
| 344 | |
| 345 | |
| 346 | def set_theme(t: Theme) -> None: |
| 347 | global _theme |
| 348 | |
| 349 | if not isinstance(t, Theme): |
| 350 | raise ValueError(f"Expected Theme object, found {t}") |
| 351 | |
| 352 | _theme = t |
| 353 | |
| 354 | |
| 355 | set_theme(default_theme) |
no test coverage detected