This commit is contained in:
2026-02-10 23:00:30 -08:00
parent c2449d0ba7
commit 5323b7c76f
6 changed files with 192 additions and 104 deletions

View File

@@ -145,7 +145,8 @@ class PipeObject:
title_text = cmdlet_name
# Color the title (requested: yellow instead of Rich's default blue-ish title).
debug_inspect(self, title=f"[yellow]{title_text}[/yellow]")
# We disable value=False to avoid duplicating the object repr which is redundant with the attribute listing
debug_inspect(self, title=f"[yellow]{title_text}[/yellow]", value=False)
def to_dict(self) -> Dict[str, Any]:
"""Serialize to dictionary, excluding None and empty values."""