mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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
|
from textual.widgets import Static
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
from textual.widgets import Static
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user