diff --git a/src/textual/app.py b/src/textual/app.py index b8aab009b4..3e7b99fcb8 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -1253,7 +1253,7 @@ def _watch_theme(self, theme_name: str) -> None: def _invalidate_css(self) -> None: """Invalidate CSS, so it will be refreshed.""" self._css_update_count += 1 - + def watch_ansi_theme_dark(self, theme: TerminalTheme) -> None: if self.current_theme.dark: self._refresh_truecolor_filter(theme) diff --git a/src/textual/command.py b/src/textual/command.py index 403cb98926..6f02e11bc2 100644 --- a/src/textual/command.py +++ b/src/textual/command.py @@ -342,7 +342,9 @@ class SimpleCommand(NamedTuple): """The description of the command.""" -CommandListItem: TypeAlias = "SimpleCommand | tuple[str, IgnoreReturnCallbackType, str | None] | tuple[str, IgnoreReturnCallbackType]" +CommandListItem: TypeAlias = ( + "SimpleCommand | tuple[str, IgnoreReturnCallbackType, str | None] | tuple[str, IgnoreReturnCallbackType]" +) class SimpleProvider(Provider):