From 736237be587bd6d84ca69f64c6a491c9782da906 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 10 Nov 2022 19:49:59 +0000 Subject: [PATCH] Flesh out the docstring for DOMQuery.remove --- src/textual/css/query.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/textual/css/query.py b/src/textual/css/query.py index 50119411a..4abfa3166 100644 --- a/src/textual/css/query.py +++ b/src/textual/css/query.py @@ -351,7 +351,11 @@ class DOMQuery(Generic[QueryType]): return self def remove(self) -> AwaitRemove: - """Remove matched nodes from the DOM""" + """Remove matched nodes from the DOM. + + Returns: + AwaitRemove: An awaitable object that waits for the widget to be removed. + """ prune_finished_event = asyncio.Event() app = active_app.get() app.post_message_no_wait(