jw-python/src/python
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann df5202f4dc
stree: Reorder StringTree class members
Reorder the StringTree class members to follow the project coding
style:

1. Nested public/helper types (Error, Match) at the top.
2. Instance attribute annotations so mypy can track them before
   __adopt_children runs in __init__.
3. Private methods (__adopt_children, __set, __dump, __find) grouped
   together, with _dict_to_tree moved from module scope into the
   class as a @staticmethod.
4. Dunder methods (__repr__ through __len__) between private and public.
5. Public API preceded by # -- Public API comment, with __init__
   moved from the top into this section.
6. _dict_to_tree recursive call updated to StringTree._dict_to_tree()
   to avoid the bare-name lookup that mypy rejects on a @staticmethod.

Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF:IQ4_NL with pi.dev v0.80.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-12 23:10:12 +00:00
..
jw stree: Reorder StringTree class members 2026-08-12 23:10:12 +00:00
jwutils jw.util.Cmds, .Cmd, .App: Use jw.pkg.lib.App + .Cmd 2026-08-12 23:10:11 +00:00
Makefile jwutils: Move to jwutils -> jw.util 2026-06-11 23:10:25 +00:00