Skip to content

Commit babbc40

Browse files
Merge pull request #3941 from elenakrittik/patch-1
fix(typing): Add missing generic parameter
2 parents 39e700e + 82e4f07 commit babbc40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textual/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class MyApp(App[None]):
310310
...
311311
```
312312
"""
313-
SCREENS: ClassVar[dict[str, Screen | Callable[[], Screen]]] = {}
313+
SCREENS: ClassVar[dict[str, Screen[Any] | Callable[[], Screen[Any]]]] = {}
314314
"""Screens associated with the app for the lifetime of the app."""
315315

316316
AUTO_FOCUS: ClassVar[str | None] = "*"

0 commit comments

Comments
 (0)