From 6ff7f52146435f9f7cebad94ff0dd1041af815c2 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Sun, 15 Oct 2023 20:15:54 +0100 Subject: [PATCH] Tweak the docstrings of the ancestors properties Both look to have been a little bit mangled at some point. --- src/textual/dom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textual/dom.py b/src/textual/dom.py index d63308ad5c..61011ef496 100644 --- a/src/textual/dom.py +++ b/src/textual/dom.py @@ -896,7 +896,7 @@ def colors(self) -> tuple[Color, Color, Color, Color]: @property def ancestors_with_self(self) -> list[DOMNode]: - """A list of Nodes by tracing a path all the way back to App. + """A list of ancestor Nodes found by tracing a path all the way back to App. Note: This is inclusive of ``self``. @@ -914,7 +914,7 @@ def ancestors_with_self(self) -> list[DOMNode]: @property def ancestors(self) -> list[DOMNode]: - """A list of ancestor nodes Nodes by tracing ancestors all the way back to App. + """A list of ancestor Nodes found by tracing a path all the way back to App. Returns: A list of nodes.