Modify the screen examples to import Screen from textual.screen

The surrounding text in the documentation states that Screen is imported
from textual.screen, but the code was importing the class from textual.app.
Further, I was getting warnings from pyright that I was using a class that
wasn't exported from the module I was importing from.
This commit is contained in:
Dave Pearson
2022-10-13 09:10:40 +01:00
parent 467700c759
commit 78ea2cd9f8
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
from textual.app import App, Screen, ComposeResult
from textual.app import App, ComposeResult
from textual.screen import Screen
from textual.widgets import Static

View File

@@ -1,4 +1,5 @@
from textual.app import App, Screen, ComposeResult
from textual.app import App, ComposeResult
from textual.screen import Screen
from textual.widgets import Static