Ignore some private accesses

It's fiiiiine... (until these things change, and the type: ignore comment starts hiding an actual problem)
This commit is contained in:
Isaiah Odhner 2023-09-04 22:05:00 -04:00
parent 38c40f4b77
commit e200501518

View File

@ -166,10 +166,10 @@ class EnhancedDirectoryTree(DirectoryTree):
Returns:
A Rich Text object containing the label.
"""
node_label = node._label.copy()
node_label = node._label.copy() # type: ignore
node_label.stylize(style)
if node._allow_expand:
if node._allow_expand: # type: ignore
prefix = (FOLDER_OPEN_ICON if node.is_expanded else FOLDER_CLOSED_ICON)
prefix.stylize_before(base_style + TOGGLE_STYLE)
node_label.stylize_before(