diff --git a/src/textual_paint/inspector.py b/src/textual_paint/inspector.py index f6f7c85..f20b7bb 100644 --- a/src/textual_paint/inspector.py +++ b/src/textual_paint/inspector.py @@ -282,7 +282,7 @@ class PropertiesTree(Tree[object]): elif isinstance(data, list): length = len(data) # type: ignore node.set_label(Text(f"[] {name} ({length})")) - elif isinstance(data, str) or isinstance(data, int) or isinstance(data, float) or isinstance(data, bool) or data is None: + elif isinstance(data, (str, int, float, bool, type(None))): node.allow_expand = False if name: label = with_name(PropertiesTree.highlighter(repr(data)))