mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Improve a docstring
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import sys
|
||||
|
||||
from textual import events
|
||||
from textual.app import App
|
||||
from textual.widget import Widget
|
||||
@@ -51,5 +53,7 @@ class BasicApp(App):
|
||||
)
|
||||
print(1234, 5678)
|
||||
|
||||
sys.stdout.write("abcdef")
|
||||
|
||||
|
||||
BasicApp.run(css_file="uber.css", log="textual.log", log_verbosity=1)
|
||||
|
||||
@@ -10,9 +10,9 @@ if TYPE_CHECKING:
|
||||
|
||||
class DevtoolsRedirector:
|
||||
"""
|
||||
A file-like object which redirects anything written to it to the devtools instance
|
||||
associated with the given Textual application. Used within Textual to redirect data
|
||||
written using `print` to the devtools.
|
||||
A write-only file-like object which redirects anything written to it to the devtools
|
||||
instance associated with the given Textual application. Used within Textual to redirect
|
||||
data written using `print` (or any other stdout writes) to the devtools.
|
||||
"""
|
||||
|
||||
def __init__(self, devtools: DevtoolsClient) -> None:
|
||||
|
||||
Reference in New Issue
Block a user