mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add missing type annotation on render_label
This commit is contained in:
@@ -157,7 +157,9 @@ class DirectoryTree(Tree[DirEntry]):
|
||||
first_line = text_label.split()[0]
|
||||
return first_line
|
||||
|
||||
def render_label(self, node: TreeNode[DirEntry], base_style: Style, style: Style):
|
||||
def render_label(
|
||||
self, node: TreeNode[DirEntry], base_style: Style, style: Style
|
||||
) -> Text:
|
||||
"""Render a label for the given node.
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user