Skip to content

Commit

Permalink
feat(model): Don't show all_* contents in repr
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuestengecko committed Apr 25, 2024
1 parent c0512ab commit 150f210
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions capellambse/model/common/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ def __repr__(self) -> str: # pragma: no cover
)
continue

if attr.startswith("all_"):
attrs.append(f".{attr} = ... # omitted")
continue

try:
value = getattr(self, attr)
except Exception:
Expand Down

0 comments on commit 150f210

Please sign in to comment.