mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a missing type hint
Looks like this has been missing since DirectoryTree was first written.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user