diff --git a/src/textual/app.py b/src/textual/app.py index 538a5f5193..8fce6798de 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -310,7 +310,7 @@ class MyApp(App[None]): ... ``` """ - SCREENS: ClassVar[dict[str, Screen | Callable[[], Screen]]] = {} + SCREENS: ClassVar[dict[str, Screen[Any] | Callable[[], Screen[Any]]]] = {} """Screens associated with the app for the lifetime of the app.""" AUTO_FOCUS: ClassVar[str | None] = "*"