mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-09 00:28:08 +03:00
Fix frozenset expansion
This commit is contained in:
parent
dc2714f9ff
commit
b52c1b93e9
@ -322,7 +322,7 @@ class PropertiesTree(Tree[object]):
|
||||
if exception is not None:
|
||||
node.allow_expand = False
|
||||
node.set_label(with_name(Text.from_markup(f"[i][#808080](getter error: [red]{escape(repr(exception))}[/red])[/#808080][/i]")))
|
||||
elif isinstance(data, (list, set, tuple)):
|
||||
elif isinstance(data, (list, set, frozenset, tuple)):
|
||||
length = len(data) # type: ignore
|
||||
# node.set_label(Text(f"{name} ({length})"))
|
||||
# node.set_label(with_name(PropertiesTree.highlighter(repr(data))))
|
||||
|
Loading…
Reference in New Issue
Block a user