Skip to content

Commit

Permalink
Tweak the docstrings of the ancestors properties
Browse files Browse the repository at this point in the history
Both look to have been a little bit mangled at some point.
  • Loading branch information
davep committed Oct 15, 2023
1 parent ddbc91e commit 6ff7f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/dom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand All @@ -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.
Expand Down

0 comments on commit 6ff7f52

Please sign in to comment.