Improve a docstring

This commit is contained in:
Darren Burns
2022-04-12 16:23:48 +01:00
parent b75d384d42
commit e44615fffe
2 changed files with 7 additions and 3 deletions

View File

@@ -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)

View File

@@ -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: