tractor/tractor/msg
Gud Boi dd8608380b Hide private fields in `Struct.pformat()` output
Skip fields starting with `_` in pretty-printed struct output
to avoid cluttering displays with internal/private state (and/or accessing
private properties which have errors Bp).

Deats,
- add `if k[0] == '_': continue` check to skip private fields
- change nested `if isinstance(v, Struct)` to `elif` since we
  now have early-continue for private fields
- mv `else:` comment to clarify it handles top-level fields
- fix indentation of `yield` statement to only output
  non-private, non-nested fields

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-02-19 19:36:59 -05:00
..
__init__.py Finally get type-extended `msgspec` fields workinn 2025-03-27 15:58:02 -04:00
_codec.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_exts.py Offer a `mods: list` to `dec_type_union()`; drop importing this-mod 2025-03-27 15:58:02 -04:00
_ops.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
pretty_struct.py Hide private fields in `Struct.pformat()` output 2026-02-19 19:36:59 -05:00
ptr.py `NamespacePath._mk_fqnp()` handle `__mod__` for methods 2025-03-24 14:04:51 -04:00
types.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00