Add a missing type hint

Looks like this has been missing since DirectoryTree was first written.
This commit is contained in:
Dave Pearson
2023-05-02 15:51:18 +01:00
parent d0639a0cc1
commit 83c09b3cfd

View File

@@ -100,7 +100,7 @@ class DirectoryTree(Tree[DirEntry]):
disabled=disabled,
)
def process_label(self, label: TextType):
def process_label(self, label: TextType) -> Text:
"""Process a str or Text into a label. Maybe overridden in a subclass to modify how labels are rendered.
Args: