Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak the docstrings of the ancestors properties #3540

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
davep marked this conversation as resolved.
Show resolved Hide resolved

Returns:
A list of nodes.
Expand Down
Loading