Add a docstring to HeaderTitle.render

This commit is contained in:
Dave Pearson
2023-03-01 10:16:31 +00:00
parent d0dedc0fde
commit 4a505e8a6c

View File

@@ -94,6 +94,11 @@ class HeaderTitle(Widget):
"""The sub-title text."""
def render(self) -> Text:
"""Render the title and sub-title.
Returns:
The value to render.
"""
text = Text(self.text, no_wrap=True, overflow="ellipsis")
if self.sub_text:
text.append("")